about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-10-07 14:22:16 +0000
committerbors <bors@rust-lang.org>2021-10-07 14:22:16 +0000
commit0157cc977fd71297ce73e2f249321f5ba2555d42 (patch)
treebe8947b6d6d893a11a676a363f1374248d34e1b9 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent680ff86391f19e12b485293f01372036e85ba87c (diff)
parenta8d8bfd3763cfde5a27dc7babd6691f1b3d65840 (diff)
downloadrust-0157cc977fd71297ce73e2f249321f5ba2555d42.tar.gz
rust-0157cc977fd71297ce73e2f249321f5ba2555d42.zip
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`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions