mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-19 11:12:43 +00:00
Improve let_underscore_lock
- lint if the lock was in a nested pattern - lint if the lock is inside a `Result<Lock, _>`
This commit is contained in:
parent
e9f87132a1
commit
3b7ba1d10a
@ -26,6 +26,7 @@ fn main() {
|
||||
let _ = p_rw;
|
||||
}
|
||||
|
||||
#[allow(let_underscore_lock)]
|
||||
fn uplifted() {
|
||||
// shouldn't lint std locks as they were uplifted as rustc's `let_underscore_lock`
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user