| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:270:19 |
| | |
| LL | /* Safety: */ unsafe {} |
| | ^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| = note: `-D clippy::undocumented-unsafe-blocks` implied by `-D warnings` |
| = help: to override `-D warnings` add `#[allow(clippy::undocumented_unsafe_blocks)]` |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:275:5 |
| | |
| LL | unsafe {} |
| | ^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:280:14 |
| | |
| LL | let _ = [unsafe { 14 }, unsafe { 15 }, 42, unsafe { 16 }]; |
| | ^^^^^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:280:29 |
| | |
| LL | let _ = [unsafe { 14 }, unsafe { 15 }, 42, unsafe { 16 }]; |
| | ^^^^^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:280:48 |
| | |
| LL | let _ = [unsafe { 14 }, unsafe { 15 }, 42, unsafe { 16 }]; |
| | ^^^^^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:287:18 |
| | |
| LL | let _ = (42, unsafe {}, "test", unsafe {}); |
| | ^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:287:37 |
| | |
| LL | let _ = (42, unsafe {}, "test", unsafe {}); |
| | ^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:293:14 |
| | |
| LL | let _ = *unsafe { &42 }; |
| | ^^^^^^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:299:19 |
| | |
| LL | let _ = match unsafe {} { |
| | ^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:306:14 |
| | |
| LL | let _ = &unsafe {}; |
| | ^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:311:14 |
| | |
| LL | let _ = [unsafe {}; 5]; |
| | ^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:316:13 |
| | |
| LL | let _ = unsafe {}; |
| | ^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:327:8 |
| | |
| LL | t!(unsafe {}); |
| | ^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:334:13 |
| | |
| LL | unsafe {} |
| | ^^^^^^^^^ |
| ... |
| LL | t!(); |
| | ---- in this macro invocation |
| | |
| = help: consider adding a safety comment on the preceding line |
| = 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 |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:343:5 |
| | |
| LL | unsafe {} // SAFETY: |
| | ^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:349:5 |
| | |
| LL | unsafe { |
| | ^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:360:5 |
| | |
| LL | unsafe {}; |
| | ^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:365:20 |
| | |
| LL | println!("{}", unsafe { String::from_utf8_unchecked(vec![]) }); |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe impl missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:373:5 |
| | |
| LL | unsafe impl A for () {} |
| | ^^^^^^^^^^^^^^^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe impl missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:381:9 |
| | |
| LL | unsafe impl B for (u32) {} |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe impl missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:403:13 |
| | |
| 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 |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:429:13 |
| | |
| 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 |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:439:5 |
| | |
| LL | unsafe impl T for (i32) {} |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe impl missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:429:13 |
| | |
| 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 |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:446:5 |
| | |
| LL | unsafe impl T for (bool) {} |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe impl missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:493:5 |
| | |
| LL | unsafe impl NoComment for () {} |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe impl missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:498:19 |
| | |
| LL | /* SAFETY: */ unsafe impl InlineComment for () {} |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe impl missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:503:5 |
| | |
| LL | unsafe impl TrailingComment for () {} // SAFETY: |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: constant item has unnecessary safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:508:5 |
| | |
| LL | const BIG_NUMBER: i32 = 1000000; |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| | |
| help: consider removing the safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:507:5 |
| | |
| LL | // SAFETY: |
| | ^^^^^^^^^^ |
| = note: `-D clippy::unnecessary-safety-comment` implied by `-D warnings` |
| = help: to override `-D warnings` add `#[allow(clippy::unnecessary_safety_comment)]` |
| |
| error: unsafe impl missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:510:5 |
| | |
| LL | unsafe impl Interference for () {} |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe impl missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:518:5 |
| | |
| LL | unsafe impl ImplInFn for () {} |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe impl missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:528:1 |
| | |
| LL | unsafe impl CrateRoot for () {} |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:539:9 |
| | |
| LL | unsafe {}; |
| | ^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: statement has unnecessary safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:543:5 |
| | |
| LL | / let _ = { |
| LL | | |
| LL | | if unsafe { true } { |
| ... | |
| LL | | }; |
| | |______^ |
| | |
| help: consider removing the safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:542:5 |
| | |
| LL | // SAFETY: this is more than one level away, so it should warn |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:545:12 |
| | |
| LL | if unsafe { true } { |
| | ^^^^^^^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:549:23 |
| | |
| LL | let bar = unsafe {}; |
| | ^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:568:9 |
| | |
| 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 |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:573:9 |
| | |
| 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 |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:578:9 |
| | |
| 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 |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:585:5 |
| | |
| LL | unsafe {} |
| | ^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:590:5 |
| | |
| LL | unsafe { |
| | ^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:598:9 |
| | |
| 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 |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:604:9 |
| | |
| 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 |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:611:9 |
| | |
| 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 |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:617:5 |
| | |
| LL | unsafe {} |
| | ^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:638:52 |
| | |
| LL | const NO_SAFETY_IN_TRAIT_BUT_IN_IMPL: u8 = unsafe { 0 }; |
| | ^^^^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:647:41 |
| | |
| LL | const NO_SAFETY_IN_TRAIT: i32 = unsafe { 1 }; |
| | ^^^^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:657:42 |
| | |
| LL | const HAS_SAFETY_IN_TRAIT: i32 = unsafe { 3 }; |
| | ^^^^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:662:40 |
| | |
| LL | const NO_SAFETY_IN_IMPL: i32 = unsafe { 1 }; |
| | ^^^^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:673:9 |
| | |
| LL | unsafe { here_is_another_variable_with_long_name }; |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: unsafe block missing a safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:702:9 |
| | |
| LL | unsafe { Date::__from_ordinal_date_unchecked(1970, 1) }.into_julian_day_just_make_this_line_longer(); |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| | |
| = help: consider adding a safety comment on the preceding line |
| |
| error: statement has unnecessary safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:719:5 |
| | |
| LL | _ = bar(); |
| | ^^^^^^^^^^ |
| | |
| help: consider removing the safety comment |
| --> tests/ui-toml/undocumented_unsafe_blocks/undocumented_unsafe_blocks.rs:718:5 |
| | |
| LL | // SAFETY: unnecessary_safety_comment triggers here |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| |
| error: aborting due to 52 previous errors |
| |