2024-06-13 05:30:48 -05:00
|
|
|
error: unsafe function's docs are missing a `# Safety` section
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc_unsafe.rs:9:1
|
2019-09-11 11:39:02 -05:00
|
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
LL | pub unsafe fn destroy_the_planet() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-09-11 11:39:02 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::missing-safety-doc` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::missing_safety_doc)]`
|
2019-09-11 11:39:02 -05:00
|
|
|
|
2024-06-13 05:30:48 -05:00
|
|
|
error: unsafe function's docs are missing a `# Safety` section
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc_unsafe.rs:32:5
|
2019-10-02 10:19:30 -05:00
|
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
LL | pub unsafe fn republished() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-10-02 10:19:30 -05:00
|
|
|
|
2024-06-13 05:30:48 -05:00
|
|
|
error: unsafe function's docs are missing a `# Safety` section
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc_unsafe.rs:40:5
|
2019-10-02 10:19:30 -05:00
|
|
|
|
|
|
|
|
LL | unsafe fn woefully_underdocumented(self);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2021-10-07 04:21:30 -05:00
|
|
|
error: docs for unsafe trait missing `# Safety` section
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc_unsafe.rs:46:1
|
2021-10-07 04:21:30 -05:00
|
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
LL | pub unsafe trait UnsafeTrait {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2021-10-07 04:21:30 -05:00
|
|
|
|
2024-06-13 05:30:48 -05:00
|
|
|
error: unsafe function's docs are missing a `# Safety` section
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc_unsafe.rs:76:5
|
2019-10-02 10:19:30 -05:00
|
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
LL | pub unsafe fn more_undocumented_unsafe() -> Self {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-10-02 10:19:30 -05:00
|
|
|
|
2024-06-13 05:30:48 -05:00
|
|
|
error: unsafe function's docs are missing a `# Safety` section
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/doc_unsafe.rs:92:9
|
2020-01-04 13:19:14 -06:00
|
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
LL | pub unsafe fn whee() {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2020-01-04 13:19:14 -06:00
|
|
|
...
|
2022-11-21 13:34:47 -06:00
|
|
|
LL | very_unsafe!();
|
|
|
|
| -------------- in this macro invocation
|
2020-02-06 21:34:06 -06:00
|
|
|
|
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `very_unsafe` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-01-04 13:19:14 -06:00
|
|
|
|
2021-10-07 04:21:30 -05:00
|
|
|
error: aborting due to 6 previous errors
|
2019-09-11 11:39:02 -05:00
|
|
|
|