5

Fix `await_holding_lock` not linting `parking_lot` Mutex/RwLock by flip1995 · Pu...

 2 years ago
source link: https://github.com/rust-lang/rust-clippy/pull/8419
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Copy link

Member

flip1995 commented 14 days ago

This adds tests for RwLock and parking_lot::{Mutex, RwLock}, which were added before in 2dc8c08, but never tested in UI tests. I noticed this while reading fasterthanli.me 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}


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK