diff options
| author | bors <bors@rust-lang.org> | 2022-02-18 10:55:05 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-02-18 10:55:05 +0000 |
| commit | 02f3c17593e653e30e8835500319ef412855fa34 (patch) | |
| tree | 9d8ca5bce443e385eb2507e961c8d84872028629 /compiler/rustc_codegen_llvm/src | |
| parent | 76f91b6f5a538f7b0389a5e7cc8cb8170a6d5117 (diff) | |
| parent | ea0ce7bb76bb01741fc3ba2ca32a80c75a380d0f (diff) | |
| download | rust-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
