about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-02-18 10:55:05 +0000
committerbors <bors@rust-lang.org>2022-02-18 10:55:05 +0000
commit02f3c17593e653e30e8835500319ef412855fa34 (patch)
tree9d8ca5bce443e385eb2507e961c8d84872028629 /compiler/rustc_codegen_llvm/src
parent76f91b6f5a538f7b0389a5e7cc8cb8170a6d5117 (diff)
parentea0ce7bb76bb01741fc3ba2ca32a80c75a380d0f (diff)
downloadrust-02f3c17593e653e30e8835500319ef412855fa34.tar.gz
rust-02f3c17593e653e30e8835500319ef412855fa34.zip
Auto merge of #8419 - flip1995:await_parking_alot, r=llogiq
Fix `await_holding_lock` not linting `parking_lot` Mutex/RwLock

This adds tests for `RwLock` and `parking_lot::{Mutex, RwLock}`, which were added before in https://github.com/rust-lang/rust-clippy/commit/2dc8c083f54454ca87bb09d691577eada2d23539, but never tested in UI tests. I noticed this while reading [fasterthanli.me](https://fasterthanli.me/articles/a-rust-match-made-in-hell) latest blog post, complaining that Clippy doesn't catch this for `parking_lot`. (Too many people read his blog, he's too powerful)

Some more things:
- Adds a test for #6446
- Improves the lint message

changelog: [`await_holding_lock`]: Now also lints for `parking_lot::{Mutex, RwLock}`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions