mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-19 19:40:36 +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`
For more information about how rustc works, see the rustc dev guide.