From 9306540f611c322178695efa7b1be8d14e6372dd Mon Sep 17 00:00:00 2001 From: Alex Macleod Date: Sun, 23 Oct 2022 14:04:50 +0000 Subject: Remove overlap between rustc and clippy `let_underscore_lock` lint --- src/docs/let_underscore_lock.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/docs/let_underscore_lock.txt b/src/docs/let_underscore_lock.txt index bd8217fb58b..88394a0a267 100644 --- a/src/docs/let_underscore_lock.txt +++ b/src/docs/let_underscore_lock.txt @@ -1,6 +1,7 @@ ### What it does -Checks for `let _ = sync_lock`. -This supports `mutex` and `rwlock` in `std::sync` and `parking_lot`. +Checks for `let _ = sync_lock`. This supports `mutex` and `rwlock` in +`parking_lot`. For `std` locks see the `rustc` lint +[`let_underscore_lock`](https://doc.rust-lang.org/nightly/rustc/lints/listing/deny-by-default.html#let-underscore-lock) ### Why is this bad? This statement immediately drops the lock instead of -- cgit 1.4.1-3-g733a5