Different behavior of the let_underscore_lock
lint in rustc compared to clippy
#102771
Labels
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code with the new rustc lint:
Clippy warns here, but rustc doesn't. This might be intentional, but I think this could be a source of mistakes...
The rustc lint is triggered, as soon as I use
.lock().unwrap()
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: