unused_variables
suggestion has false positives for variables that are only named in unreachable code
#107734
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`.
C-bug
Category: This is a bug.
D-invalid-suggestion
Diagnostics: A structured suggestion resulting in incorrect code.
L-unused_variables
Lint: unused_variables
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Running
cargo clippy --fix
orcargo +nightly clippy --fix
on this code causes it to break, and tells me to come here and file a bug reportI think clippy wants to turn result into _result, and then the second result is not found.
Meta
rustc --version --verbose
:Full output of clippy
The text was updated successfully, but these errors were encountered: