Introduce get_diagnostic_name
This commit is contained in:
parent
d7539a6af0
commit
33b9b95305
9 changed files with 59 additions and 34 deletions
|
@ -1442,7 +1442,7 @@ rustc_queries! {
|
|||
}
|
||||
|
||||
/// Returns all diagnostic items defined in all crates.
|
||||
query all_diagnostic_items(_: ()) -> FxHashMap<Symbol, DefId> {
|
||||
query all_diagnostic_items(_: ()) -> rustc_hir::diagnostic_items::DiagnosticItems {
|
||||
storage(ArenaCacheSelector<'tcx>)
|
||||
eval_always
|
||||
desc { "calculating the diagnostic items map" }
|
||||
|
@ -1454,7 +1454,7 @@ rustc_queries! {
|
|||
}
|
||||
|
||||
/// Returns the diagnostic items defined in a crate.
|
||||
query diagnostic_items(_: CrateNum) -> FxHashMap<Symbol, DefId> {
|
||||
query diagnostic_items(_: CrateNum) -> rustc_hir::diagnostic_items::DiagnosticItems {
|
||||
storage(ArenaCacheSelector<'tcx>)
|
||||
desc { "calculating the diagnostic items map in a crate" }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue