1 #![warn(clippy::undocumented_unsafe_blocks, clippy::unnecessary_safety_comment)]
2 #![allow(clippy::let_unit_value, clippy::missing_safety_doc)]
4 mod unsafe_items_invalid_comment {
8 static STATIC: u32 = 0;
17 mod unnecessary_from_macro {
20 macro_rules! no_safety_comment {
26 // FIXME: This is not caught
27 // Safety: unnecessary
28 no_safety_comment!(());
30 macro_rules! with_safety_comment {
32 // Safety: unnecessary
37 with_safety_comment!(i32);
40 fn unnecessary_on_stmt_and_expr() -> u32 {
41 // SAFETY: unnecessary
44 // SAFETY: unnecessary
47 // SAFETY: unnecessary