@@ -1021,7 +1021,7 @@ pub struct Resolver<'ra, 'tcx> {
10211021 graph_root : Module < ' ra > ,
10221022
10231023 prelude : Option < Module < ' ra > > ,
1024- extern_prelude : FxIndexMap < Ident , ExternPreludeEntry < ' ra > > ,
1024+ extern_prelude : FxHashMap < Ident , ExternPreludeEntry < ' ra > > ,
10251025
10261026 /// N.B., this is used only for better diagnostics, not name resolution itself.
10271027 field_names : LocalDefIdMap < Vec < Ident > > ,
@@ -1054,7 +1054,7 @@ pub struct Resolver<'ra, 'tcx> {
10541054 extra_lifetime_params_map : NodeMap < Vec < ( Ident , NodeId , LifetimeRes ) > > ,
10551055
10561056 /// `CrateNum` resolutions of `extern crate` items.
1057- extern_crate_map : FxIndexMap < LocalDefId , CrateNum > ,
1057+ extern_crate_map : FxHashMap < LocalDefId , CrateNum > ,
10581058 module_children : LocalDefIdMap < Vec < ModChild > > ,
10591059 trait_map : NodeMap < Vec < TraitCandidate > > ,
10601060
@@ -1077,7 +1077,7 @@ pub struct Resolver<'ra, 'tcx> {
10771077 /// some AST passes can generate identifiers that only resolve to local or
10781078 /// lang items.
10791079 empty_module : Module < ' ra > ,
1080- module_map : FxIndexMap < DefId , Module < ' ra > > ,
1080+ module_map : FxHashMap < DefId , Module < ' ra > > ,
10811081 binding_parent_modules : FxHashMap < NameBinding < ' ra > , Module < ' ra > > ,
10821082
10831083 underscore_disambiguator : u32 ,
@@ -1113,14 +1113,14 @@ pub struct Resolver<'ra, 'tcx> {
11131113 macro_names : FxHashSet < Ident > ,
11141114 builtin_macros : FxHashMap < Symbol , BuiltinMacroState > ,
11151115 registered_tools : & ' tcx RegisteredTools ,
1116- macro_use_prelude : FxIndexMap < Symbol , NameBinding < ' ra > > ,
1116+ macro_use_prelude : FxHashMap < Symbol , NameBinding < ' ra > > ,
11171117 macro_map : FxHashMap < DefId , MacroData > ,
11181118 dummy_ext_bang : Lrc < SyntaxExtension > ,
11191119 dummy_ext_derive : Lrc < SyntaxExtension > ,
11201120 non_macro_attr : MacroData ,
11211121 local_macro_def_scopes : FxHashMap < LocalDefId , Module < ' ra > > ,
11221122 ast_transform_scopes : FxHashMap < LocalExpnId , Module < ' ra > > ,
1123- unused_macros : FxIndexMap < LocalDefId , ( NodeId , Ident ) > ,
1123+ unused_macros : FxHashMap < LocalDefId , ( NodeId , Ident ) > ,
11241124 /// A map from the macro to all its potentially unused arms.
11251125 unused_macro_rules : FxIndexMap < LocalDefId , FxIndexMap < usize , ( Ident , Span ) > > ,
11261126 proc_macro_stubs : FxHashSet < LocalDefId > ,
@@ -1234,7 +1234,7 @@ impl<'ra> ResolverArenas<'ra> {
12341234 expn_id : ExpnId ,
12351235 span : Span ,
12361236 no_implicit_prelude : bool ,
1237- module_map : & mut FxIndexMap < DefId , Module < ' ra > > ,
1237+ module_map : & mut FxHashMap < DefId , Module < ' ra > > ,
12381238 module_self_bindings : & mut FxHashMap < Module < ' ra > , NameBinding < ' ra > > ,
12391239 ) -> Module < ' ra > {
12401240 let module = Module ( Interned :: new_unchecked ( self . modules . alloc ( ModuleData :: new (
@@ -1379,7 +1379,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
13791379 arenas : & ' ra ResolverArenas < ' ra > ,
13801380 ) -> Resolver < ' ra , ' tcx > {
13811381 let root_def_id = CRATE_DEF_ID . to_def_id ( ) ;
1382- let mut module_map = FxIndexMap :: default ( ) ;
1382+ let mut module_map = FxHashMap :: default ( ) ;
13831383 let mut module_self_bindings = FxHashMap :: default ( ) ;
13841384 let graph_root = arenas. new_module (
13851385 None ,
@@ -1396,7 +1396,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
13961396 ExpnId :: root ( ) ,
13971397 DUMMY_SP ,
13981398 true ,
1399- & mut FxIndexMap :: default ( ) ,
1399+ & mut FxHashMap :: default ( ) ,
14001400 & mut FxHashMap :: default ( ) ,
14011401 ) ;
14021402
@@ -1412,7 +1412,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
14121412 let mut invocation_parents = FxHashMap :: default ( ) ;
14131413 invocation_parents. insert ( LocalExpnId :: ROOT , InvocationParent :: ROOT ) ;
14141414
1415- let mut extern_prelude: FxIndexMap < Ident , ExternPreludeEntry < ' _ > > = tcx
1415+ let mut extern_prelude: FxHashMap < Ident , ExternPreludeEntry < ' _ > > = tcx
14161416 . sess
14171417 . opts
14181418 . externs
@@ -1512,7 +1512,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
15121512 macro_names : FxHashSet :: default ( ) ,
15131513 builtin_macros : Default :: default ( ) ,
15141514 registered_tools,
1515- macro_use_prelude : FxIndexMap :: default ( ) ,
1515+ macro_use_prelude : FxHashMap :: default ( ) ,
15161516 macro_map : FxHashMap :: default ( ) ,
15171517 dummy_ext_bang : Lrc :: new ( SyntaxExtension :: dummy_bang ( edition) ) ,
15181518 dummy_ext_derive : Lrc :: new ( SyntaxExtension :: dummy_derive ( edition) ) ,
0 commit comments