Use diagnostic items instead of hard coded paths for let_underscore_lock
Using diagnostic items avoids having to update the paths if the guard types ever get moved around for some reason. Additionally, it also greatly simplifies the `is_sync_lock` check.
This commit is contained in:
parent
e6b66784ac
commit
6342b58ef0
2 changed files with 14 additions and 20 deletions
|
@ -213,6 +213,7 @@ symbols! {
|
|||
LinkedList,
|
||||
LintPass,
|
||||
Mutex,
|
||||
MutexGuard,
|
||||
N,
|
||||
None,
|
||||
Ok,
|
||||
|
@ -250,6 +251,8 @@ symbols! {
|
|||
Right,
|
||||
RustcDecodable,
|
||||
RustcEncodable,
|
||||
RwLockReadGuard,
|
||||
RwLockWriteGuard,
|
||||
Send,
|
||||
SeqCst,
|
||||
SliceIndex,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue