diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-01-22 07:56:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-22 07:56:41 +0100 |
| commit | a417366d581ee8a7d6cc1d8d8c5cd4a1750df834 (patch) | |
| tree | 00555c8c883e7c154b9fb07288a4593504254254 | |
| parent | 833cbd69f8aa847b5724e5aebde1b2cbf133c81e (diff) | |
| parent | 3b7ba1d10aa15414416ffca8e0990eeee494f32d (diff) | |
| download | rust-a417366d581ee8a7d6cc1d8d8c5cd4a1750df834.tar.gz rust-a417366d581ee8a7d6cc1d8d8c5cd4a1750df834.zip | |
Rollup merge of #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 https://github.com/rust-lang/rust/pull/119704#discussion_r1444044745
| -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` |
