8

Fix if_let_mutex not checking Mutexes behind refs by lukaslueg · Pull Request #9...

 2 years ago
source link: https://github.com/rust-lang/rust-clippy/pull/9318
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

Contributor

@lukaslueg lukaslueg commented 9 days ago

edited by xFrednet

Fixes #9193

We can always peel references because we are looking for a method-call, for which autoderef applies.


changelog: [if_let_mutex]: detect calls to Mutex::lock() if mutex is behind a ref
changelog: [if_let_mutex]: Add labels to the two instances of the same Mutex that will deadlock

All reactions

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK