@@ -4,9 +4,6 @@ use crate::arena::Arena;
4
4
use crate :: dep_graph:: DepGraph ;
5
5
use crate :: dep_graph:: { self , DepConstructor } ;
6
6
use crate :: hir:: exports:: Export ;
7
- use crate :: hir:: map as hir_map;
8
- use crate :: hir:: map:: definitions:: Definitions ;
9
- use crate :: hir:: map:: { DefPathData , DefPathHash } ;
10
7
use crate :: ich:: { NodeIdHashingMode , StableHashingContext } ;
11
8
use crate :: infer:: canonical:: { Canonical , CanonicalVarInfo , CanonicalVarInfos } ;
12
9
use crate :: lint:: { struct_lint_level, LintSource } ;
@@ -56,6 +53,7 @@ use rustc_data_structures::sync::{self, Lock, Lrc, WorkerLocal};
56
53
use rustc_hir as hir;
57
54
use rustc_hir:: def:: { DefKind , Res } ;
58
55
use rustc_hir:: def_id:: { CrateNum , DefId , DefIdMap , DefIdSet , LocalDefId , LOCAL_CRATE } ;
56
+ use rustc_hir:: definitions:: { DefPathData , DefPathHash , Definitions } ;
59
57
use rustc_hir:: { HirId , Node , TraitCandidate } ;
60
58
use rustc_hir:: { ItemKind , ItemLocalId , ItemLocalMap , ItemLocalSet } ;
61
59
use rustc_index:: vec:: { Idx , IndexVec } ;
@@ -1235,7 +1233,7 @@ impl<'tcx> TyCtxt<'tcx> {
1235
1233
self . features_query ( LOCAL_CRATE )
1236
1234
}
1237
1235
1238
- pub fn def_key ( self , id : DefId ) -> hir_map :: DefKey {
1236
+ pub fn def_key ( self , id : DefId ) -> rustc_hir :: definitions :: DefKey {
1239
1237
if let Some ( id) = id. as_local ( ) { self . hir ( ) . def_key ( id) } else { self . cstore . def_key ( id) }
1240
1238
}
1241
1239
@@ -1244,7 +1242,7 @@ impl<'tcx> TyCtxt<'tcx> {
1244
1242
///
1245
1243
/// Note that if `id` is not local to this crate, the result will
1246
1244
/// be a non-local `DefPath`.
1247
- pub fn def_path ( self , id : DefId ) -> hir_map :: DefPath {
1245
+ pub fn def_path ( self , id : DefId ) -> rustc_hir :: definitions :: DefPath {
1248
1246
if let Some ( id) = id. as_local ( ) {
1249
1247
self . hir ( ) . def_path ( id)
1250
1248
} else {
@@ -1259,7 +1257,7 @@ impl<'tcx> TyCtxt<'tcx> {
1259
1257
}
1260
1258
1261
1259
#[ inline]
1262
- pub fn def_path_hash ( self , def_id : DefId ) -> hir_map :: DefPathHash {
1260
+ pub fn def_path_hash ( self , def_id : DefId ) -> rustc_hir :: definitions :: DefPathHash {
1263
1261
if let Some ( def_id) = def_id. as_local ( ) {
1264
1262
self . definitions . def_path_hash ( def_id)
1265
1263
} else {
0 commit comments