Skip to content

Commit a417366

Browse files
authored
Rollup merge of rust-lang#119710 - Nilstrieb:let-_-=-oops, r=TaKO8Ki
Improve `let_underscore_lock` - lint if the lock was in a nested pattern - lint if the lock is inside a `Result<Lock, _>` addresses rust-lang#119704 (comment)
2 parents 833cbd6 + 3b7ba1d commit a417366

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/ui/let_underscore_lock.rs

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ fn main() {
2626
let _ = p_rw;
2727
}
2828

29+
#[allow(let_underscore_lock)]
2930
fn uplifted() {
3031
// shouldn't lint std locks as they were uplifted as rustc's `let_underscore_lock`
3132

0 commit comments

Comments
 (0)