Fix if_let_mutex not checking Mutexes behind refs by lukaslueg · Pull Request #9...
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.
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
Recommend
-
36
Suppose we have a struct that contains a map, and we want to modify the map in a method. Here's a simple example :
-
5
Collaborator rust-log-analyzer commented
-
4
Copy link Contributor lukaslueg commented
-
9
Copy link Contributor camsteffen commented
-
4
Add partialeq_to_none lint #9288 ...
-
8
Contributor ...
-
5
Contributor ...
-
5
Contributor ...
-
4
Contributor
-
5
Contributor ...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK