From 65f700fa894ba833251bfe0217dc4634b75ea6bc Mon Sep 17 00:00:00 2001 From: Klim Tsoutsman Date: Mon, 13 Jun 2022 13:08:50 +1000 Subject: Fix `let_undescore_lock` false-positive when binding without locking Signed-off-by: Klim Tsoutsman --- clippy_lints/src/let_underscore.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'clippy_lints') 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 { -- cgit 1.4.1-3-g733a5