@@ -4,9 +4,10 @@ warning: variant is never constructed: `B`
4
4
LL | B,
5
5
| ^ help: if this is intentional, prefix it with an underscore: `_B`
6
6
|
7
- = note: the leading underscore helps signal to the reader that the variant may still serve
8
- a purpose even if it isn't used in a way that we can detect (e.g. the variant
9
- is only used through FFI or used only for its effect when dropped)
7
+ = note: The leading underscore signals to the reader that while the variant may not be constructed
8
+ by any Rust code, it still serves some other purpose that isn't detected by rustc.
9
+ (e.g. some values are used for their effect when dropped or used in FFI code
10
+ exclusively through raw pointers)
10
11
note: the lint level is defined here
11
12
--> $DIR/const-and-self.rs:3:9
12
13
|
@@ -19,9 +20,10 @@ warning: variant is never constructed: `C`
19
20
LL | C,
20
21
| ^ help: if this is intentional, prefix it with an underscore: `_C`
21
22
|
22
- = note: the leading underscore helps signal to the reader that the variant may still serve
23
- a purpose even if it isn't used in a way that we can detect (e.g. the variant
24
- is only used through FFI or used only for its effect when dropped)
23
+ = note: The leading underscore signals to the reader that while the variant may not be constructed
24
+ by any Rust code, it still serves some other purpose that isn't detected by rustc.
25
+ (e.g. some values are used for their effect when dropped or used in FFI code
26
+ exclusively through raw pointers)
25
27
26
28
warning: 2 warnings emitted
27
29
0 commit comments