mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-29 03:53:55 +00:00
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.