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