1
Fork 0

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:
Aaron Kofsky 2022-06-04 22:27:32 -04:00
parent e6b66784ac
commit 6342b58ef0
2 changed files with 14 additions and 20 deletions

View file

@ -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,