about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlex Macleod <alex@macleod.io>2022-10-23 14:04:50 +0000
committerAlex Macleod <alex@macleod.io>2022-10-23 14:06:59 +0000
commit9306540f611c322178695efa7b1be8d14e6372dd (patch)
treef394701bffcdc21c4f856e96ccb56e81895f5230 /src
parentff893366c1ac355822aa644c0ed43930eb605fb4 (diff)
downloadrust-9306540f611c322178695efa7b1be8d14e6372dd.tar.gz
rust-9306540f611c322178695efa7b1be8d14e6372dd.zip
Remove overlap between rustc and clippy `let_underscore_lock` lint
Diffstat (limited to 'src')
-rw-r--r--src/docs/let_underscore_lock.txt5
1 files changed, 3 insertions, 2 deletions
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