5f021e0023
This commit extends existing suggestions to prefix unused variable bindings in match arms with an underscore so that it applies to all patterns in a match arm.
20 lines
596 B
Plaintext
20 lines
596 B
Plaintext
warning: lint `raw_pointer_derive` has been removed: `using derive with raw pointers is ok`
|
|
|
|
|
= note: requested on the command line with `-D raw_pointer_derive`
|
|
|
|
error: unused variable: `unused`
|
|
--> $DIR/lint-removed-cmdline.rs:12:17
|
|
|
|
|
LL | fn main() { let unused = (); }
|
|
| ^^^^^^ help: consider prefixing with an underscore: `_unused`
|
|
|
|
|
note: lint level defined here
|
|
--> $DIR/lint-removed-cmdline.rs:11:8
|
|
|
|
|
LL | #[deny(warnings)]
|
|
| ^^^^^^^^
|
|
= note: #[deny(unused_variables)] implied by #[deny(warnings)]
|
|
|
|
error: aborting due to previous error
|
|
|