2021-10-21 06:11:36 -05:00
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:270:19
|
2022-04-07 12:39:59 -05:00
|
|
|
|
|
|
|
|
LL | /* Safety: */ unsafe {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::undocumented-unsafe-blocks` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::undocumented_unsafe_blocks)]`
|
2022-04-07 12:39:59 -05:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:274:5
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
|
|
|
LL | unsafe {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2022-04-07 12:39:59 -05:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:278:14
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
2022-04-07 12:39:59 -05:00
|
|
|
LL | let _ = [unsafe { 14 }, unsafe { 15 }, 42, unsafe { 16 }];
|
|
|
|
| ^^^^^^^^^^^^^
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
2022-04-07 12:39:59 -05:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:278:29
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
|
|
|
LL | let _ = [unsafe { 14 }, unsafe { 15 }, 42, unsafe { 16 }];
|
2022-04-07 12:39:59 -05:00
|
|
|
| ^^^^^^^^^^^^^
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
2022-04-07 12:39:59 -05:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:278:48
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
2022-04-07 12:39:59 -05:00
|
|
|
LL | let _ = [unsafe { 14 }, unsafe { 15 }, 42, unsafe { 16 }];
|
|
|
|
| ^^^^^^^^^^^^^
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
2022-04-07 12:39:59 -05:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:282:18
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
|
|
|
LL | let _ = (42, unsafe {}, "test", unsafe {});
|
2022-04-07 12:39:59 -05:00
|
|
|
| ^^^^^^^^^
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
2022-04-07 12:39:59 -05:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:282:37
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
2022-04-07 12:39:59 -05:00
|
|
|
LL | let _ = (42, unsafe {}, "test", unsafe {});
|
|
|
|
| ^^^^^^^^^
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
2022-04-07 12:39:59 -05:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:286:14
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
|
|
|
LL | let _ = *unsafe { &42 };
|
2022-04-07 12:39:59 -05:00
|
|
|
| ^^^^^^^^^^^^^^
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
2022-04-07 12:39:59 -05:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:291:19
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
|
|
|
LL | let _ = match unsafe {} {
|
2022-04-07 12:39:59 -05:00
|
|
|
| ^^^^^^^^^
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
2022-04-07 12:39:59 -05:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:297:14
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
|
|
|
LL | let _ = &unsafe {};
|
2022-04-07 12:39:59 -05:00
|
|
|
| ^^^^^^^^^
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
2022-04-07 12:39:59 -05:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:301:14
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
|
|
|
LL | let _ = [unsafe {}; 5];
|
2022-04-07 12:39:59 -05:00
|
|
|
| ^^^^^^^^^
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
2022-04-07 12:39:59 -05:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:305:13
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
|
|
|
LL | let _ = unsafe {};
|
2022-04-07 12:39:59 -05:00
|
|
|
| ^^^^^^^^^
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
2022-04-07 12:39:59 -05:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:315:8
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
|
|
|
LL | t!(unsafe {});
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2022-04-07 12:39:59 -05:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-21 06:11:36 -05:00
|
|
|
|
2022-04-07 12:39:59 -05:00
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:321:13
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
|
|
|
LL | unsafe {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | t!();
|
|
|
|
| ---- in this macro invocation
|
|
|
|
|
|
2022-04-07 12:39:59 -05:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-21 06:11:36 -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
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:329:5
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
2021-12-30 08:10:43 -06:00
|
|
|
LL | unsafe {} // SAFETY:
|
2021-10-21 06:11:36 -05:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2022-04-07 12:39:59 -05:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:333:5
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
|
|
|
LL | unsafe {
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
2022-04-07 12:39:59 -05:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:343:5
|
2021-10-21 06:11:36 -05:00
|
|
|
|
|
|
|
|
LL | unsafe {};
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
2022-04-07 12:39:59 -05:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-10-21 06:11:36 -05:00
|
|
|
|
2021-12-06 05:33:31 -06:00
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:347:20
|
2021-12-06 05:33:31 -06:00
|
|
|
|
|
|
|
|
LL | println!("{}", unsafe { String::from_utf8_unchecked(vec![]) });
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2022-04-07 12:39:59 -05:00
|
|
|
= help: consider adding a safety comment on the preceding line
|
2021-12-06 05:33:31 -06:00
|
|
|
|
2022-05-21 06:24:00 -05:00
|
|
|
error: unsafe impl missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:354:5
|
2022-05-21 06:24:00 -05:00
|
|
|
|
|
|
|
|
LL | unsafe impl A for () {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe impl missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:361:9
|
2022-05-21 06:24:00 -05:00
|
|
|
|
|
|
|
|
LL | unsafe impl B for (u32) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe impl missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:382:13
|
2022-05-21 06:24:00 -05: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
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:407:13
|
2022-05-21 06:24:00 -05: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
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:415:5
|
2022-05-21 06:24:00 -05:00
|
|
|
|
|
|
|
|
LL | unsafe impl T for (i32) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe impl missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:407:13
|
2022-05-21 06:24:00 -05: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
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:421:5
|
2022-05-21 06:24:00 -05:00
|
|
|
|
|
|
|
|
LL | unsafe impl T for (bool) {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe impl missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:467:5
|
2022-05-21 06:24:00 -05:00
|
|
|
|
|
|
|
|
LL | unsafe impl NoComment for () {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe impl missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:471:19
|
2022-05-21 06:24:00 -05:00
|
|
|
|
|
|
|
|
LL | /* SAFETY: */ unsafe impl InlineComment for () {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe impl missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:475:5
|
2022-05-21 06:24:00 -05:00
|
|
|
|
|
|
|
|
LL | unsafe impl TrailingComment for () {} // SAFETY:
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
2022-12-01 11:29:38 -06:00
|
|
|
error: constant item has unnecessary safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:479:5
|
2022-12-01 11:29:38 -06:00
|
|
|
|
|
|
|
|
LL | const BIG_NUMBER: i32 = 1000000;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: consider removing the safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:478:5
|
2022-12-01 11:29:38 -06:00
|
|
|
|
|
|
|
|
LL | // SAFETY:
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
= note: `-D clippy::unnecessary-safety-comment` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::unnecessary_safety_comment)]`
|
2022-12-01 11:29:38 -06:00
|
|
|
|
2022-05-21 06:24:00 -05:00
|
|
|
error: unsafe impl missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:480:5
|
2022-05-21 06:24:00 -05:00
|
|
|
|
|
|
|
|
LL | unsafe impl Interference for () {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe impl missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:487:5
|
2022-05-21 06:24:00 -05:00
|
|
|
|
|
|
|
|
LL | unsafe impl ImplInFn for () {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe impl missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:496:1
|
2022-05-21 06:24:00 -05:00
|
|
|
|
|
|
|
|
LL | unsafe impl CrateRoot for () {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:506:9
|
2022-11-21 13:34:47 -06:00
|
|
|
|
|
|
|
|
LL | unsafe {};
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
2022-12-01 11:29:38 -06:00
|
|
|
error: statement has unnecessary safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:509:5
|
2022-12-01 11:29:38 -06:00
|
|
|
|
|
|
|
|
LL | / let _ = {
|
|
|
|
LL | | if unsafe { true } {
|
|
|
|
LL | | todo!();
|
|
|
|
LL | | } else {
|
|
|
|
... |
|
|
|
|
LL | | }
|
|
|
|
LL | | };
|
|
|
|
| |______^
|
|
|
|
|
|
|
|
|
help: consider removing the safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:508:5
|
2022-12-01 11:29:38 -06:00
|
|
|
|
|
|
|
|
LL | // SAFETY: this is more than one level away, so it should warn
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:510:12
|
2022-11-21 13:34:47 -06:00
|
|
|
|
|
|
|
|
LL | if unsafe { true } {
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:513:23
|
2022-11-21 13:34:47 -06:00
|
|
|
|
|
|
|
|
LL | let bar = unsafe {};
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
2023-07-02 07:35:19 -05:00
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:531:9
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | unsafe { a_function_with_a_very_long_name_to_break_the_line() };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:535:9
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | unsafe { a_const_function_with_a_very_long_name_to_break_the_line() };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:539:9
|
2023-09-25 04:28:58 -05:00
|
|
|
|
|
|
|
|
LL | unsafe { a_const_function_with_a_very_long_name_to_break_the_line() };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:545:5
|
2023-09-25 04:28:58 -05:00
|
|
|
|
|
|
|
|
LL | unsafe {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:549:5
|
2023-09-25 04:28:58 -05:00
|
|
|
|
|
|
|
|
LL | unsafe {
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:556:9
|
2023-09-25 04:28:58 -05:00
|
|
|
|
|
|
|
|
LL | unsafe { a_function_with_a_very_long_name_to_break_the_line() };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:561:9
|
2023-09-25 04:28:58 -05:00
|
|
|
|
|
|
|
|
LL | unsafe { a_const_function_with_a_very_long_name_to_break_the_line() };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:567:9
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
|
LL | unsafe { a_const_function_with_a_very_long_name_to_break_the_line() };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
2023-09-25 04:28:58 -05:00
|
|
|
error: unsafe block missing a safety comment
|
2024-02-10 16:31:36 -06:00
|
|
|
--> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:572:5
|
2023-09-25 04:28:58 -05:00
|
|
|
|
|
|
|
|
LL | unsafe {}
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
= help: consider adding a safety comment on the preceding line
|
|
|
|
|
|
|
|
error: aborting due to 45 previous errors
|
2021-10-21 06:11:36 -05:00
|
|
|
|