@@ -3,7 +3,7 @@ use crate::base::allocator_kind_for_codegen;
33use std:: collections:: hash_map:: Entry :: * ;
44
55use rustc_ast:: expand:: allocator:: { ALLOCATOR_METHODS , NO_ALLOC_SHIM_IS_UNSTABLE } ;
6- use rustc_data_structures:: fx :: FxHashMap ;
6+ use rustc_data_structures:: unord :: UnordMap ;
77use rustc_hir:: def:: DefKind ;
88use rustc_hir:: def_id:: { CrateNum , DefId , DefIdMap , LocalDefId , LOCAL_CRATE } ;
99use rustc_middle:: middle:: codegen_fn_attrs:: CodegenFnAttrFlags ;
@@ -393,10 +393,10 @@ fn exported_symbols_provider_local(
393393fn upstream_monomorphizations_provider (
394394 tcx : TyCtxt < ' _ > ,
395395 ( ) : ( ) ,
396- ) -> DefIdMap < FxHashMap < GenericArgsRef < ' _ > , CrateNum > > {
396+ ) -> DefIdMap < UnordMap < GenericArgsRef < ' _ > , CrateNum > > {
397397 let cnums = tcx. crates ( ( ) ) ;
398398
399- let mut instances: DefIdMap < FxHashMap < _ , _ > > = Default :: default ( ) ;
399+ let mut instances: DefIdMap < UnordMap < _ , _ > > = Default :: default ( ) ;
400400
401401 let drop_in_place_fn_def_id = tcx. lang_items ( ) . drop_in_place_fn ( ) ;
402402
@@ -445,7 +445,7 @@ fn upstream_monomorphizations_provider(
445445fn upstream_monomorphizations_for_provider (
446446 tcx : TyCtxt < ' _ > ,
447447 def_id : DefId ,
448- ) -> Option < & FxHashMap < GenericArgsRef < ' _ > , CrateNum > > {
448+ ) -> Option < & UnordMap < GenericArgsRef < ' _ > , CrateNum > > {
449449 debug_assert ! ( !def_id. is_local( ) ) ;
450450 tcx. upstream_monomorphizations ( ( ) ) . get ( & def_id)
451451}
0 commit comments