rust/compiler
bors 0157cc977f Auto merge of #89534 - camsteffen:diag-name, r=oli-obk
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`
2021-10-07 14:22:16 +00:00
..
2021-09-20 22:21:42 -04:00
2021-09-20 22:21:42 -04:00
2021-09-20 22:21:42 -04:00
2021-09-20 22:21:42 -04:00
2021-10-03 16:08:50 +02:00
2021-10-03 16:08:54 +02:00
2021-10-04 02:33:33 -04:00
2021-09-20 22:21:42 -04:00
2021-09-20 22:21:42 -04:00
2021-10-06 08:40:28 -05:00
2021-09-20 22:21:42 -04:00
2021-10-06 13:10:08 -05:00
2021-10-01 23:17:19 +02:00
2021-10-06 20:37:24 +02:00
2021-09-20 22:21:42 -04:00
2021-10-03 16:08:57 +02:00
2021-09-20 22:21:42 -04:00
2021-10-03 16:08:54 +02:00