mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 22:56:12 +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.