File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -757,7 +757,7 @@ rustc_queries! {
757
757
///
758
758
/// The map returned for `tcx.impl_item_implementor_ids(impl_id)` would be
759
759
///`{ trait_f: impl_f, trait_g: impl_g }`
760
- query impl_item_implementor_ids( impl_id: DefId ) -> & ' tcx FxHashMap < DefId , DefId > {
760
+ query impl_item_implementor_ids( impl_id: DefId ) -> & ' tcx DefIdMap < DefId > {
761
761
arena_cache
762
762
desc { |tcx| "comparing impl items against trait for `{}`" , tcx. def_path_str( impl_id) }
763
763
}
Original file line number Diff line number Diff line change 1
- use rustc_data_structures:: fx:: FxHashMap ;
2
1
use rustc_hir as hir;
3
2
use rustc_hir:: def:: DefKind ;
4
- use rustc_hir:: def_id:: { DefId , LocalDefId } ;
3
+ use rustc_hir:: def_id:: { DefId , DefIdMap , LocalDefId } ;
5
4
use rustc_hir:: definitions:: DefPathData ;
6
5
use rustc_hir:: intravisit:: { self , Visitor } ;
7
6
use rustc_middle:: ty:: { self , DefIdTree , TyCtxt } ;
@@ -40,7 +39,7 @@ fn associated_items(tcx: TyCtxt<'_>, def_id: DefId) -> ty::AssocItems {
40
39
}
41
40
}
42
41
43
- fn impl_item_implementor_ids ( tcx : TyCtxt < ' _ > , impl_id : DefId ) -> FxHashMap < DefId , DefId > {
42
+ fn impl_item_implementor_ids ( tcx : TyCtxt < ' _ > , impl_id : DefId ) -> DefIdMap < DefId > {
44
43
tcx. associated_items ( impl_id)
45
44
. in_definition_order ( )
46
45
. filter_map ( |item| item. trait_item_def_id . map ( |trait_item| ( trait_item, item. def_id ) ) )
You can’t perform that action at this time.
0 commit comments