diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2024-01-07 20:37:51 +0100 |
|---|---|---|
| committer | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2024-01-12 23:18:58 +0100 |
| commit | 3b7ba1d10aa15414416ffca8e0990eeee494f32d (patch) | |
| tree | f8f079ecbd05ad282e23a370ba055db7f207b511 | |
| parent | e9f87132a12244893121c28598aca3e6fceb3518 (diff) | |
Improve `let_underscore_lock`
- lint if the lock was in a nested pattern - lint if the lock is inside a `Result<Lock, _>`
| -rw-r--r-- | tests/ui/let_underscore_lock.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/let_underscore_lock.rs b/tests/ui/let_underscore_lock.rs index ccac73be79e..28d8dd49831 100644 --- a/tests/ui/let_underscore_lock.rs +++ b/tests/ui/let_underscore_lock.rs @@ -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` |
