1
Fork 0

Make iteration order of trimmed_def_paths query stable

This commit is contained in:
Michael Woerister 2023-12-21 12:27:04 +01:00
parent 36dd3d4524
commit 7d4f2ee817
2 changed files with 4 additions and 4 deletions

View file

@ -1791,7 +1791,7 @@ rustc_queries! {
}
/// Collects the "trimmed", shortest accessible paths to all items for diagnostics.
/// See the [provider docs](`rustc_middle::ty::print::trimmed_def_paths`) for more info.
query trimmed_def_paths(_: ()) -> &'tcx FxHashMap<DefId, Symbol> {
query trimmed_def_paths(_: ()) -> &'tcx DefIdMap<Symbol> {
arena_cache
desc { "calculating trimmed def paths" }
}