mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-17 01:38:05 +00:00

Introduce `tcx.get_diagnostic_name` Introduces a "reverse lookup" for diagnostic items. This is mainly intended for `@rust-lang/clippy` which often does a long series of `is_diagnostic_item` calls for the same `DefId`. r? `@oli-obk`