1 error: constant item has unnecessary safety comment
2 --> $DIR/unnecessary_safety_comment.rs:6:5
4 LL | const CONST: u32 = 0;
5 | ^^^^^^^^^^^^^^^^^^^^^
7 help: consider removing the safety comment
8 --> $DIR/unnecessary_safety_comment.rs:5:5
12 = note: `-D clippy::unnecessary-safety-comment` implied by `-D warnings`
13 = help: to override `-D warnings` add `#[allow(clippy::unnecessary_safety_comment)]`
15 error: static item has unnecessary safety comment
16 --> $DIR/unnecessary_safety_comment.rs:9:5
18 LL | static STATIC: u32 = 0;
19 | ^^^^^^^^^^^^^^^^^^^^^^^
21 help: consider removing the safety comment
22 --> $DIR/unnecessary_safety_comment.rs:8:5
27 error: struct has unnecessary safety comment
28 --> $DIR/unnecessary_safety_comment.rs:12:5
33 help: consider removing the safety comment
34 --> $DIR/unnecessary_safety_comment.rs:11:5
39 error: enum has unnecessary safety comment
40 --> $DIR/unnecessary_safety_comment.rs:15:5
45 help: consider removing the safety comment
46 --> $DIR/unnecessary_safety_comment.rs:14:5
51 error: module has unnecessary safety comment
52 --> $DIR/unnecessary_safety_comment.rs:18:5
57 help: consider removing the safety comment
58 --> $DIR/unnecessary_safety_comment.rs:17:5
63 error: impl has unnecessary safety comment
64 --> $DIR/unnecessary_safety_comment.rs:38:13
69 LL | with_safety_comment!(i32);
70 | ------------------------- in this macro invocation
72 help: consider removing the safety comment
73 --> $DIR/unnecessary_safety_comment.rs:37:13
75 LL | // Safety: unnecessary
76 | ^^^^^^^^^^^^^^^^^^^^^^
77 = note: this error originates in the macro `with_safety_comment` (in Nightly builds, run with -Z macro-backtrace for more info)
79 error: expression has unnecessary safety comment
80 --> $DIR/unnecessary_safety_comment.rs:55:5
85 help: consider removing the safety comment
86 --> $DIR/unnecessary_safety_comment.rs:54:5
88 LL | // SAFETY: unnecessary
89 | ^^^^^^^^^^^^^^^^^^^^^^
91 error: statement has unnecessary safety comment
92 --> $DIR/unnecessary_safety_comment.rs:47:5
97 help: consider removing the safety comment
98 --> $DIR/unnecessary_safety_comment.rs:46:5
100 LL | // SAFETY: unnecessary
101 | ^^^^^^^^^^^^^^^^^^^^^^
103 error: statement has unnecessary safety comment
104 --> $DIR/unnecessary_safety_comment.rs:51:5
109 help: consider removing the safety comment
110 --> $DIR/unnecessary_safety_comment.rs:50:5
112 LL | // SAFETY: unnecessary
113 | ^^^^^^^^^^^^^^^^^^^^^^
115 error: aborting due to 9 previous errors