Philipp Krones 82afb16179 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
..
2022-10-27 18:41:26 +04:00
2022-10-29 16:04:10 -05:00
2022-10-29 16:04:10 -05:00
2022-10-29 20:28:38 +11:00
2022-10-29 20:28:38 +11:00
2022-10-29 20:28:38 +11:00
2022-10-29 20:28:38 +11:00
2022-10-29 20:28:38 +11:00
2022-10-29 20:28:38 +11:00
2022-09-24 23:21:19 +09:00
2022-10-29 20:28:38 +11:00
2022-10-29 20:28:38 +11:00
2022-10-29 20:28:38 +11:00
2022-10-27 18:41:26 +04:00
2022-10-29 16:04:10 -05:00
2022-10-29 20:28:38 +11:00
2022-10-27 18:41:26 +04:00
2022-10-29 20:28:38 +11:00
2022-10-27 18:41:26 +04:00
2022-10-29 20:28:38 +11:00
2022-10-29 20:28:38 +11:00