2021-10-01 22:25:48 -05:00
|
|
|
error: unsafe block missing a safety comment
|
2022-04-01 23:46:45 -05:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:256:19
|
|
|
|
|
|
|
|
|
LL | /* Safety: */ unsafe {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::undocumented-unsafe-blocks` implied by `-D warnings`
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:260:5
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
|
|
|
LL | unsafe {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2022-02-19 16:56:42 -06:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-04-01 23:46:45 -05:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:264:14
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
2022-02-19 16:56:42 -06:00
|
|
|
LL | let _ = [unsafe { 14 }, unsafe { 15 }, 42, unsafe { 16 }];
|
|
|
|
| ^^^^^^^^^^^^^
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
2022-02-19 16:56:42 -06:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-04-01 23:46:45 -05:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:264:29
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
|
|
|
LL | let _ = [unsafe { 14 }, unsafe { 15 }, 42, unsafe { 16 }];
|
2022-02-19 16:56:42 -06:00
|
|
|
| ^^^^^^^^^^^^^
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
2022-02-19 16:56:42 -06:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-04-01 23:46:45 -05:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:264:48
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
2022-02-19 16:56:42 -06:00
|
|
|
LL | let _ = [unsafe { 14 }, unsafe { 15 }, 42, unsafe { 16 }];
|
|
|
|
| ^^^^^^^^^^^^^
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
2022-02-19 16:56:42 -06:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-04-01 23:46:45 -05:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:268:18
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
|
|
|
LL | let _ = (42, unsafe {}, "test", unsafe {});
|
2022-02-19 16:56:42 -06:00
|
|
|
| ^^^^^^^^^
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
2022-02-19 16:56:42 -06:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-04-01 23:46:45 -05:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:268:37
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
2022-02-19 16:56:42 -06:00
|
|
|
LL | let _ = (42, unsafe {}, "test", unsafe {});
|
|
|
|
| ^^^^^^^^^
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
2022-02-19 16:56:42 -06:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-04-01 23:46:45 -05:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:272:14
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
|
|
|
LL | let _ = *unsafe { &42 };
|
2022-02-19 16:56:42 -06:00
|
|
|
| ^^^^^^^^^^^^^^
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
2022-02-19 16:56:42 -06:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-04-01 23:46:45 -05:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:277:19
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
|
|
|
LL | let _ = match unsafe {} {
|
2022-02-19 16:56:42 -06:00
|
|
|
| ^^^^^^^^^
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
2022-02-19 16:56:42 -06:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-04-01 23:46:45 -05:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:283:14
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
|
|
|
LL | let _ = &unsafe {};
|
2022-02-19 16:56:42 -06:00
|
|
|
| ^^^^^^^^^
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
2022-02-19 16:56:42 -06:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-04-01 23:46:45 -05:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:287:14
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
|
|
|
LL | let _ = [unsafe {}; 5];
|
2022-02-19 16:56:42 -06:00
|
|
|
| ^^^^^^^^^
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
2022-02-19 16:56:42 -06:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-04-01 23:46:45 -05:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:291:13
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
|
|
|
LL | let _ = unsafe {};
|
2022-02-19 16:56:42 -06:00
|
|
|
| ^^^^^^^^^
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
2022-02-19 16:56:42 -06:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-04-01 23:46:45 -05:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:301:8
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
|
|
|
LL | t!(unsafe {});
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2022-02-19 16:56:42 -06:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-01 22:25:48 -05:00
|
|
|
|
2022-02-19 16:56:42 -06:00
|
|
|
error: unsafe block missing a safety comment
|
2022-04-01 23:46:45 -05:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:307:13
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
|
|
|
LL | unsafe {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | t!();
|
2021-10-21 05:18:12 -05:00
|
|
|
| ---- in this macro invocation
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
2022-02-19 16:56:42 -06:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-01 22:25:48 -05:00
|
|
|
= note: this error originates in the macro `t` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-04-01 23:46:45 -05:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:315:5
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
2021-12-17 13:48:38 -06:00
|
|
|
LL | unsafe {} // SAFETY:
|
2021-10-01 22:25:48 -05:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2022-02-19 16:56:42 -06:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-04-01 23:46:45 -05:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:319:5
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
|
|
|
LL | unsafe {
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
2022-02-19 16:56:42 -06:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-04-01 23:46:45 -05:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:329:5
|
2021-10-01 22:25:48 -05:00
|
|
|
|
|
|
|
|
LL | unsafe {};
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2022-02-19 16:56:42 -06:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-01 22:25:48 -05:00
|
|
|
|
2021-11-17 07:35:01 -06:00
|
|
|
error: unsafe block missing a safety comment
|
2022-04-01 23:46:45 -05:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:333:20
|
2021-11-17 07:35:01 -06:00
|
|
|
|
|
|
|
|
LL | println!("{}", unsafe { String::from_utf8_unchecked(vec![]) });
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2022-02-19 16:56:42 -06:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-11-17 07:35:01 -06:00
|
|
|
|
2022-04-01 23:46:45 -05:00
|
|
|
error: aborting due to 18 previous errors
|
2021-10-01 22:25:48 -05:00
|
|
|
|