]> git.lizzy.rs Git - rust.git/commit
Use diagnostic items instead of hard coded paths for `let_underscore_lock`
authorAaron Kofsky <aaronko@umich.edu>
Sun, 5 Jun 2022 02:27:32 +0000 (22:27 -0400)
committerAaron Kofsky <aaronko@umich.edu>
Sun, 5 Jun 2022 02:27:32 +0000 (22:27 -0400)
commit6342b58ef0f71ca0284dced4b1d22f9726c1c74a
treede665f93801a79abbf08ac31ffdc2bea59790c1a
parente6b66784aca8564557485d902968ff7523cf30ca
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.
compiler/rustc_lint/src/let_underscore.rs
compiler/rustc_span/src/symbol.rs