about summary refs log tree commit diff
path: root/compiler/rustc_ty_utils
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2023-02-21 11:35:19 +0100
committerMichael Woerister <michaelwoerister@posteo>2023-03-01 10:19:25 +0100
commit5ff00f96e62248e2e9fe8233ffd98e47bf3dfdc7 (patch)
tree389631ed5a114616f833020fd71f6b0d94d96817 /compiler/rustc_ty_utils
parent5983a3a99ea631da9d7d1ce510a6761913f92a89 (diff)
downloadrust-5ff00f96e62248e2e9fe8233ffd98e47bf3dfdc7.tar.gz
rust-5ff00f96e62248e2e9fe8233ffd98e47bf3dfdc7.zip
Use DefIdMap instead of FxHashMap for impl_item_implementor_ids query.
Diffstat (limited to 'compiler/rustc_ty_utils')
-rw-r--r--compiler/rustc_ty_utils/src/assoc.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_ty_utils/src/assoc.rs b/compiler/rustc_ty_utils/src/assoc.rs
index d4866b5dbdd..8312988ca3e 100644
--- a/compiler/rustc_ty_utils/src/assoc.rs
+++ b/compiler/rustc_ty_utils/src/assoc.rs
@@ -1,7 +1,6 @@
-use rustc_data_structures::fx::FxHashMap;
 use rustc_hir as hir;
 use rustc_hir::def::DefKind;
-use rustc_hir::def_id::{DefId, LocalDefId};
+use rustc_hir::def_id::{DefId, DefIdMap, LocalDefId};
 use rustc_hir::definitions::DefPathData;
 use rustc_hir::intravisit::{self, Visitor};
 use rustc_middle::ty::{self, DefIdTree, TyCtxt};
@@ -40,7 +39,7 @@ fn associated_items(tcx: TyCtxt<'_>, def_id: DefId) -> ty::AssocItems {
     }
 }
 
-fn impl_item_implementor_ids(tcx: TyCtxt<'_>, impl_id: DefId) -> FxHashMap<DefId, DefId> {
+fn impl_item_implementor_ids(tcx: TyCtxt<'_>, impl_id: DefId) -> DefIdMap<DefId> {
     tcx.associated_items(impl_id)
         .in_definition_order()
         .filter_map(|item| item.trait_item_def_id.map(|trait_item| (trait_item, item.def_id)))