diff options
| author | Philipp Krones <hello@philkrones.com> | 2022-11-05 15:08:37 +0100 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2022-11-17 20:06:25 +0100 |
| commit | 82afb1617938e7075021ba440f1bcc0812dc4a37 (patch) | |
| tree | 0746e6d1069c5a3bd82f583b0e8c0955fd8920e1 /tests/rustdoc-ui/coverage/json.rs | |
| parent | 11d632f7b10be252d7445b78ce771cd99f046393 (diff) | |
| download | rust-82afb1617938e7075021ba440f1bcc0812dc4a37.tar.gz rust-82afb1617938e7075021ba440f1bcc0812dc4a37.zip | |
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.
Diffstat (limited to 'tests/rustdoc-ui/coverage/json.rs')
0 files changed, 0 insertions, 0 deletions
