2021-10-02 03:25:48 +00:00
|
|
|
error: unsafe block missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:262:19
|
2022-04-02 04:46:45 +00:00
|
|
|
|
|
|
|
|
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
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:266:5
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
|
|
|
LL | unsafe {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2022-02-19 22:56:42 +00:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:270:14
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
2022-02-19 22:56:42 +00:00
|
|
|
LL | let _ = [unsafe { 14 }, unsafe { 15 }, 42, unsafe { 16 }];
|
|
|
|
| ^^^^^^^^^^^^^
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
2022-02-19 22:56:42 +00:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:270:29
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
|
|
|
LL | let _ = [unsafe { 14 }, unsafe { 15 }, 42, unsafe { 16 }];
|
2022-02-19 22:56:42 +00:00
|
|
|
| ^^^^^^^^^^^^^
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
2022-02-19 22:56:42 +00:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:270:48
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
2022-02-19 22:56:42 +00:00
|
|
|
LL | let _ = [unsafe { 14 }, unsafe { 15 }, 42, unsafe { 16 }];
|
|
|
|
| ^^^^^^^^^^^^^
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
2022-02-19 22:56:42 +00:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:274:18
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
|
|
|
LL | let _ = (42, unsafe {}, "test", unsafe {});
|
2022-02-19 22:56:42 +00:00
|
|
|
| ^^^^^^^^^
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
2022-02-19 22:56:42 +00:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:274:37
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
2022-02-19 22:56:42 +00:00
|
|
|
LL | let _ = (42, unsafe {}, "test", unsafe {});
|
|
|
|
| ^^^^^^^^^
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
2022-02-19 22:56:42 +00:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:278:14
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
|
|
|
LL | let _ = *unsafe { &42 };
|
2022-02-19 22:56:42 +00:00
|
|
|
| ^^^^^^^^^^^^^^
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
2022-02-19 22:56:42 +00:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:283:19
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
|
|
|
LL | let _ = match unsafe {} {
|
2022-02-19 22:56:42 +00:00
|
|
|
| ^^^^^^^^^
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
2022-02-19 22:56:42 +00:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:289:14
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
|
|
|
LL | let _ = &unsafe {};
|
2022-02-19 22:56:42 +00:00
|
|
|
| ^^^^^^^^^
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
2022-02-19 22:56:42 +00:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:293:14
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
|
|
|
LL | let _ = [unsafe {}; 5];
|
2022-02-19 22:56:42 +00:00
|
|
|
| ^^^^^^^^^
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
2022-02-19 22:56:42 +00:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:297:13
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
|
|
|
LL | let _ = unsafe {};
|
2022-02-19 22:56:42 +00:00
|
|
|
| ^^^^^^^^^
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
2022-02-19 22:56:42 +00:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:307:8
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
|
|
|
LL | t!(unsafe {});
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2022-02-19 22:56:42 +00:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-02 03:25:48 +00:00
|
|
|
|
2022-02-19 22:56:42 +00:00
|
|
|
error: unsafe block missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:313:13
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
|
|
|
LL | unsafe {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | t!();
|
2021-10-21 10:18:12 +00:00
|
|
|
| ---- in this macro invocation
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
2022-02-19 22:56:42 +00:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-02 03:25:48 +00: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-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:321:5
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
2021-12-17 19:48:38 +00:00
|
|
|
LL | unsafe {} // SAFETY:
|
2021-10-02 03:25:48 +00:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2022-02-19 22:56:42 +00:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:325:5
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
|
|
|
LL | unsafe {
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
2022-02-19 22:56:42 +00:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:335:5
|
2021-10-02 03:25:48 +00:00
|
|
|
|
|
|
|
|
LL | unsafe {};
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2022-02-19 22:56:42 +00:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-02 03:25:48 +00:00
|
|
|
|
2021-11-17 13:35:01 +00:00
|
|
|
error: unsafe block missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:339:20
|
2021-11-17 13:35:01 +00:00
|
|
|
|
|
|
|
|
LL | println!("{}", unsafe { String::from_utf8_unchecked(vec![]) });
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2022-02-19 22:56:42 +00:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-11-17 13:35:01 +00:00
|
|
|
|
2022-04-29 09:34:58 +00:00
|
|
|
error: unsafe impl missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:346:5
|
2022-04-29 09:34:58 +00:00
|
|
|
|
|
|
|
|
LL | unsafe impl A for () {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe impl missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:353:9
|
2022-04-29 09:34:58 +00:00
|
|
|
|
|
|
|
|
LL | unsafe impl B for (u32) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe impl missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:374:13
|
2022-05-07 09:18:57 +00:00
|
|
|
|
|
|
|
|
LL | unsafe impl T for $t {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | no_safety_comment!(());
|
|
|
|
| ---------------------- in this macro invocation
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
= note: this error originates in the macro `no_safety_comment` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error: unsafe impl missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:399:13
|
2022-05-10 14:08:18 +00:00
|
|
|
|
|
|
|
|
LL | unsafe impl T for $t {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | no_safety_comment!(());
|
|
|
|
| ---------------------- in this macro invocation
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
= note: this error originates in the macro `no_safety_comment` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error: unsafe impl missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:407:5
|
2022-05-10 14:08:18 +00:00
|
|
|
|
|
|
|
|
LL | unsafe impl T for (i32) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe impl missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:399:13
|
2022-05-10 14:08:18 +00:00
|
|
|
|
|
|
|
|
LL | unsafe impl T for $t {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | no_safety_comment!(u32);
|
|
|
|
| ----------------------- in this macro invocation
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
= note: this error originates in the macro `no_safety_comment` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
|
|
|
|
|
|
error: unsafe impl missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:413:5
|
2022-05-10 14:08:18 +00:00
|
|
|
|
|
|
|
|
LL | unsafe impl T for (bool) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe impl missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:459:5
|
2022-04-29 09:34:58 +00:00
|
|
|
|
|
|
|
|
LL | unsafe impl NoComment for () {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe impl missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:463:19
|
2022-04-29 09:34:58 +00:00
|
|
|
|
|
|
|
|
LL | /* SAFETY: */ unsafe impl InlineComment for () {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe impl missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:467:5
|
2022-04-29 09:34:58 +00:00
|
|
|
|
|
|
|
|
LL | unsafe impl TrailingComment for () {} // SAFETY:
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe impl missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:472:5
|
2022-04-29 09:34:58 +00:00
|
|
|
|
|
|
|
|
LL | unsafe impl Interference for () {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
2022-05-10 14:08:18 +00:00
|
|
|
error: unsafe impl missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:479:5
|
2022-05-10 14:08:18 +00:00
|
|
|
|
|
|
|
|
LL | unsafe impl ImplInFn for () {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe impl missing a safety comment
|
2022-07-04 17:53:42 +00:00
|
|
|
--> $DIR/undocumented_unsafe_blocks.rs:488:1
|
2022-05-10 14:08:18 +00:00
|
|
|
|
|
|
|
|
LL | unsafe impl CrateRoot for () {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: aborting due to 31 previous errors
|
2021-10-02 03:25:48 +00:00
|
|
|
|