fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
3.1 KiB116 linesraw
1error: constant item has unnecessary safety comment
2  --> $DIR/unnecessary_safety_comment.rs:6:5
3   |
4LL |     const CONST: u32 = 0;
5   |     ^^^^^^^^^^^^^^^^^^^^^
6   |
7help: consider removing the safety comment
8  --> $DIR/unnecessary_safety_comment.rs:5:5
9   |
10LL |     // SAFETY:
11   |     ^^^^^^^^^^
12   = note: `-D clippy::unnecessary-safety-comment` implied by `-D warnings`
13   = help: to override `-D warnings` add `#[allow(clippy::unnecessary_safety_comment)]`
14
15error: static item has unnecessary safety comment
16  --> $DIR/unnecessary_safety_comment.rs:9:5
17   |
18LL |     static STATIC: u32 = 0;
19   |     ^^^^^^^^^^^^^^^^^^^^^^^
20   |
21help: consider removing the safety comment
22  --> $DIR/unnecessary_safety_comment.rs:8:5
23   |
24LL |     // SAFETY:
25   |     ^^^^^^^^^^
26
27error: struct has unnecessary safety comment
28  --> $DIR/unnecessary_safety_comment.rs:12:5
29   |
30LL |     struct Struct;
31   |     ^^^^^^^^^^^^^^
32   |
33help: consider removing the safety comment
34  --> $DIR/unnecessary_safety_comment.rs:11:5
35   |
36LL |     // SAFETY:
37   |     ^^^^^^^^^^
38
39error: enum has unnecessary safety comment
40  --> $DIR/unnecessary_safety_comment.rs:15:5
41   |
42LL |     enum Enum {}
43   |     ^^^^^^^^^^^^
44   |
45help: consider removing the safety comment
46  --> $DIR/unnecessary_safety_comment.rs:14:5
47   |
48LL |     // SAFETY:
49   |     ^^^^^^^^^^
50
51error: module has unnecessary safety comment
52  --> $DIR/unnecessary_safety_comment.rs:18:5
53   |
54LL |     mod module {}
55   |     ^^^^^^^^^^^^^
56   |
57help: consider removing the safety comment
58  --> $DIR/unnecessary_safety_comment.rs:17:5
59   |
60LL |     // SAFETY:
61   |     ^^^^^^^^^^
62
63error: impl has unnecessary safety comment
64  --> $DIR/unnecessary_safety_comment.rs:38:13
65   |
66LL |             impl T for $t {}
67   |             ^^^^^^^^^^^^^^^^
68...
69LL |     with_safety_comment!(i32);
70   |     ------------------------- in this macro invocation
71   |
72help: consider removing the safety comment
73  --> $DIR/unnecessary_safety_comment.rs:37:13
74   |
75LL |             // 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)
78
79error: expression has unnecessary safety comment
80  --> $DIR/unnecessary_safety_comment.rs:55:5
81   |
82LL |     24
83   |     ^^
84   |
85help: consider removing the safety comment
86  --> $DIR/unnecessary_safety_comment.rs:54:5
87   |
88LL |     // SAFETY: unnecessary
89   |     ^^^^^^^^^^^^^^^^^^^^^^
90
91error: statement has unnecessary safety comment
92  --> $DIR/unnecessary_safety_comment.rs:47:5
93   |
94LL |     let num = 42;
95   |     ^^^^^^^^^^^^^
96   |
97help: consider removing the safety comment
98  --> $DIR/unnecessary_safety_comment.rs:46:5
99   |
100LL |     // SAFETY: unnecessary
101   |     ^^^^^^^^^^^^^^^^^^^^^^
102
103error: statement has unnecessary safety comment
104  --> $DIR/unnecessary_safety_comment.rs:51:5
105   |
106LL |     if num > 24 {}
107   |     ^^^^^^^^^^^^^^
108   |
109help: consider removing the safety comment
110  --> $DIR/unnecessary_safety_comment.rs:50:5
111   |
112LL |     // SAFETY: unnecessary
113   |     ^^^^^^^^^^^^^^^^^^^^^^
114
115error: aborting due to 9 previous errors
116