@@ -4,9 +4,10 @@ warning: variant is never constructed: `B`
44LL | B,
55 | ^ help: if this is intentional, prefix it with an underscore: `_B`
66 |
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)
1011note: the lint level is defined here
1112 --> $DIR/const-and-self.rs:3:9
1213 |
@@ -19,9 +20,10 @@ warning: variant is never constructed: `C`
1920LL | C,
2021 | ^ help: if this is intentional, prefix it with an underscore: `_C`
2122 |
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)
2527
2628warning: 2 warnings emitted
2729
0 commit comments