@@ -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 } ;
@@ -1236,7 +1234,7 @@ impl<'tcx> TyCtxt<'tcx> {
1236
1234
self . features_query ( LOCAL_CRATE )
1237
1235
}
1238
1236
1239
- pub fn def_key ( self , id : DefId ) -> hir_map :: DefKey {
1237
+ pub fn def_key ( self , id : DefId ) -> rustc_hir :: definitions :: DefKey {
1240
1238
if let Some ( id) = id. as_local ( ) { self . hir ( ) . def_key ( id) } else { self . cstore . def_key ( id) }
1241
1239
}
1242
1240
@@ -1245,7 +1243,7 @@ impl<'tcx> TyCtxt<'tcx> {
1245
1243
///
1246
1244
/// Note that if `id` is not local to this crate, the result will
1247
1245
/// be a non-local `DefPath`.
1248
- pub fn def_path ( self , id : DefId ) -> hir_map :: DefPath {
1246
+ pub fn def_path ( self , id : DefId ) -> rustc_hir :: definitions :: DefPath {
1249
1247
if let Some ( id) = id. as_local ( ) {
1250
1248
self . hir ( ) . def_path ( id)
1251
1249
} else {
@@ -1260,7 +1258,7 @@ impl<'tcx> TyCtxt<'tcx> {
1260
1258
}
1261
1259
1262
1260
#[ inline]
1263
- pub fn def_path_hash ( self , def_id : DefId ) -> hir_map :: DefPathHash {
1261
+ pub fn def_path_hash ( self , def_id : DefId ) -> rustc_hir :: definitions :: DefPathHash {
1264
1262
if let Some ( def_id) = def_id. as_local ( ) {
1265
1263
self . definitions . def_path_hash ( def_id)
1266
1264
} else {
0 commit comments