rust/compiler/rustc_hir
Philipp Krones 4e65f5ea82
Add variant_name function to LangItem
Clippy has an internal lint that checks for the usage of hardcoded def
paths and suggests to replace them with a lang or diagnostic item, if
possible. This was implemented with a hack, by getting all the variants
of the `LangItem` enum and then index into it with the position of the
`LangItem` in the `items` list. This is no longer possible, because the
`items` list can't be accessed anymore.
2022-11-17 20:06:25 +01:00
..
src Add variant_name function to LangItem 2022-11-17 20:06:25 +01:00
Cargo.toml Remove from compiler/ crates 2022-09-29 16:49:04 +09:00