about summary refs log tree commit diff
path: root/clippy_lints
diff options
context:
space:
mode:
authorKlim Tsoutsman <klimusha@gmail.com>2022-06-13 13:08:50 +1000
committerKlim Tsoutsman <klim@tsoutsman.com>2022-06-27 20:35:26 +1000
commit65f700fa894ba833251bfe0217dc4634b75ea6bc (patch)
tree5757811b1a96440c6e95ac4a0bb344c7a1f7cf90 /clippy_lints
parent6b762ee330a1f6f366d2316aa999a541663bce1d (diff)
downloadrust-65f700fa894ba833251bfe0217dc4634b75ea6bc.tar.gz
rust-65f700fa894ba833251bfe0217dc4634b75ea6bc.zip
Fix `let_undescore_lock` false-positive when binding without locking
Signed-off-by: Klim Tsoutsman <klimusha@gmail.com>
Diffstat (limited to 'clippy_lints')
-rw-r--r--clippy_lints/src/let_underscore.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/clippy_lints/src/let_underscore.rs b/clippy_lints/src/let_underscore.rs
index 26c540e2223..176787497eb 100644
--- a/clippy_lints/src/let_underscore.rs
+++ b/clippy_lints/src/let_underscore.rs
@@ -99,12 +99,13 @@ declare_clippy_lint! {
 
 declare_lint_pass!(LetUnderscore => [LET_UNDERSCORE_MUST_USE, LET_UNDERSCORE_LOCK, LET_UNDERSCORE_DROP]);
 
-const SYNC_GUARD_PATHS: [&[&str]; 5] = [
+const SYNC_GUARD_PATHS: [&[&str]; 6] = [
     &paths::MUTEX_GUARD,
     &paths::RWLOCK_READ_GUARD,
     &paths::RWLOCK_WRITE_GUARD,
-    &paths::PARKING_LOT_RAWMUTEX,
-    &paths::PARKING_LOT_RAWRWLOCK,
+    &paths::PARKING_LOT_MUTEX_GUARD,
+    &paths::PARKING_LOT_RWLOCK_READ_GUARD,
+    &paths::PARKING_LOT_RWLOCK_WRITE_GUARD,
 ];
 
 impl<'tcx> LateLintPass<'tcx> for LetUnderscore {