rust/tests/ui/undocumented_unsafe_blocks.stderr

200 lines
6.1 KiB
Plaintext
Raw Normal View History

2021-10-01 22:25:48 -05:00
error: unsafe block missing a safety comment
--> $DIR/undocumented_unsafe_blocks.rs:257: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:261: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
--> $DIR/undocumented_unsafe_blocks.rs:265: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
--> $DIR/undocumented_unsafe_blocks.rs:265: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
--> $DIR/undocumented_unsafe_blocks.rs:265: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
--> $DIR/undocumented_unsafe_blocks.rs:269: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
--> $DIR/undocumented_unsafe_blocks.rs:269: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
--> $DIR/undocumented_unsafe_blocks.rs:273: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
--> $DIR/undocumented_unsafe_blocks.rs:278: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
--> $DIR/undocumented_unsafe_blocks.rs:284: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
--> $DIR/undocumented_unsafe_blocks.rs:288: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
--> $DIR/undocumented_unsafe_blocks.rs:292: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
--> $DIR/undocumented_unsafe_blocks.rs:302: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
--> $DIR/undocumented_unsafe_blocks.rs:308:13
2021-10-01 22:25:48 -05:00
|
LL | unsafe {}
| ^^^^^^^^^
...
LL | t!();
| ---- 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
--> $DIR/undocumented_unsafe_blocks.rs:316:5
2021-10-01 22:25:48 -05: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
--> $DIR/undocumented_unsafe_blocks.rs:320: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
--> $DIR/undocumented_unsafe_blocks.rs:330: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
--> $DIR/undocumented_unsafe_blocks.rs:334:20
|
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
2022-04-29 04:34:58 -05:00
error: unsafe impl missing a safety comment
--> $DIR/undocumented_unsafe_blocks.rs:341:5
|
LL | unsafe impl A for () {}
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a safety comment on the preceding line
error: unsafe impl missing a safety comment
--> $DIR/undocumented_unsafe_blocks.rs:348:9
|
LL | unsafe impl B for (u32) {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a safety comment on the preceding line
error: unsafe impl missing a safety comment
--> $DIR/undocumented_unsafe_blocks.rs:420:5
|
LL | unsafe impl NoComment for () {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a safety comment on the preceding line
error: unsafe impl missing a safety comment
--> $DIR/undocumented_unsafe_blocks.rs:424:19
|
LL | /* SAFETY: */ unsafe impl InlineComment for () {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a safety comment on the preceding line
error: unsafe impl missing a safety comment
--> $DIR/undocumented_unsafe_blocks.rs:428:5
|
LL | unsafe impl TrailingComment for () {} // SAFETY:
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a safety comment on the preceding line
error: unsafe impl missing a safety comment
--> $DIR/undocumented_unsafe_blocks.rs:433:5
|
LL | unsafe impl Interference for () {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a safety comment on the preceding line
error: aborting due to 24 previous errors
2021-10-01 22:25:48 -05:00