@@ -12,7 +12,7 @@ use rustc_apfloat::Float;
12
12
use rustc_data_structures:: fx:: { FxHashMap , FxIndexMap } ;
13
13
use rustc_hir as hir;
14
14
use 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 } ;
16
16
use rustc_hir:: definitions:: { DefKey , DefPathDataName } ;
17
17
use rustc_hir:: LangItem ;
18
18
use rustc_session:: config:: TrimmedDefPaths ;
@@ -3049,8 +3049,8 @@ fn for_each_def(tcx: TyCtxt<'_>, mut collect_fn: impl for<'b> FnMut(&'b Ident, N
3049
3049
///
3050
3050
/// See also [`DelayDm`](rustc_error_messages::DelayDm) and [`with_no_trimmed_paths!`].
3051
3051
// 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 ( ) ;
3054
3054
3055
3055
if let TrimmedDefPaths :: GoodPath = tcx. sess . opts . trimmed_def_paths {
3056
3056
// Trimming paths is expensive and not optimized, since we expect it to only be used for error reporting.
0 commit comments