@@ -12,7 +12,7 @@ use rustc_apfloat::Float;
1212use rustc_data_structures:: fx:: { FxHashMap , FxIndexMap } ;
1313use rustc_hir as hir;
1414use rustc_hir:: def:: { self , CtorKind , DefKind , Namespace } ;
15- use rustc_hir:: def_id:: { DefIdSet , ModDefId , CRATE_DEF_ID , LOCAL_CRATE } ;
15+ use rustc_hir:: def_id:: { DefIdMap , DefIdSet , ModDefId , CRATE_DEF_ID , LOCAL_CRATE } ;
1616use rustc_hir:: definitions:: { DefKey , DefPathDataName } ;
1717use rustc_hir:: LangItem ;
1818use rustc_session:: config:: TrimmedDefPaths ;
@@ -3049,8 +3049,8 @@ fn for_each_def(tcx: TyCtxt<'_>, mut collect_fn: impl for<'b> FnMut(&'b Ident, N
30493049///
30503050/// See also [`DelayDm`](rustc_error_messages::DelayDm) and [`with_no_trimmed_paths!`].
30513051// this is pub to be able to intra-doc-link it
3052- pub fn trimmed_def_paths ( tcx : TyCtxt < ' _ > , ( ) : ( ) ) -> FxHashMap < DefId , Symbol > {
3053- let mut map: FxHashMap < DefId , Symbol > = FxHashMap :: default ( ) ;
3052+ pub fn trimmed_def_paths ( tcx : TyCtxt < ' _ > , ( ) : ( ) ) -> DefIdMap < Symbol > {
3053+ let mut map: DefIdMap < Symbol > = Default :: default ( ) ;
30543054
30553055 if let TrimmedDefPaths :: GoodPath = tcx. sess . opts . trimmed_def_paths {
30563056 // Trimming paths is expensive and not optimized, since we expect it to only be used for error reporting.
0 commit comments