|
49 | 49 | //! user of the `DepNode` API of having to know how to compute the expected |
50 | 50 | //! fingerprint for a given set of node parameters. |
51 | 51 |
|
52 | | -use mir::interpret::GlobalId; |
53 | | -use hir::def_id::{CrateNum, DefId, DefIndex, CRATE_DEF_INDEX}; |
54 | | -use hir::map::DefPathHash; |
55 | | -use hir::HirId; |
| 52 | +use crate::mir::interpret::GlobalId; |
| 53 | +use crate::hir::def_id::{CrateNum, DefId, DefIndex, CRATE_DEF_INDEX}; |
| 54 | +use crate::hir::map::DefPathHash; |
| 55 | +use crate::hir::HirId; |
56 | 56 |
|
57 | | -use ich::{Fingerprint, StableHashingContext}; |
| 57 | +use crate::ich::{Fingerprint, StableHashingContext}; |
58 | 58 | use rustc_data_structures::stable_hasher::{StableHasher, HashStable}; |
59 | 59 | use std::fmt; |
60 | 60 | use std::hash::Hash; |
61 | 61 | use syntax_pos::symbol::InternedString; |
62 | | -use traits; |
63 | | -use traits::query::{ |
| 62 | +use crate::traits; |
| 63 | +use crate::traits::query::{ |
64 | 64 | CanonicalProjectionGoal, CanonicalTyGoal, CanonicalTypeOpAscribeUserTypeGoal, |
65 | 65 | CanonicalTypeOpEqGoal, CanonicalTypeOpSubtypeGoal, CanonicalPredicateGoal, |
66 | 66 | CanonicalTypeOpProvePredicateGoal, CanonicalTypeOpNormalizeGoal, |
67 | 67 | }; |
68 | | -use ty::{TyCtxt, FnSig, Instance, InstanceDef, |
| 68 | +use crate::ty::{TyCtxt, FnSig, Instance, InstanceDef, |
69 | 69 | ParamEnv, ParamEnvAnd, Predicate, PolyFnSig, PolyTraitRef, Ty}; |
70 | | -use ty::subst::Substs; |
| 70 | +use crate::ty::subst::Substs; |
71 | 71 |
|
72 | 72 | // erase!() just makes tokens go away. It's used to specify which macro argument |
73 | 73 | // is repeated (i.e., which sub-expression of the macro we are in) but don't need |
@@ -389,7 +389,7 @@ impl fmt::Debug for DepNode { |
389 | 389 |
|
390 | 390 | write!(f, "(")?; |
391 | 391 |
|
392 | | - ::ty::tls::with_opt(|opt_tcx| { |
| 392 | + crate::ty::tls::with_opt(|opt_tcx| { |
393 | 393 | if let Some(tcx) = opt_tcx { |
394 | 394 | if let Some(def_id) = self.extract_def_id(tcx) { |
395 | 395 | write!(f, "{}", tcx.def_path_debug_str(def_id))?; |
@@ -825,6 +825,6 @@ impl WorkProductId { |
825 | 825 | } |
826 | 826 | } |
827 | 827 |
|
828 | | -impl_stable_hash_for!(struct ::dep_graph::WorkProductId { |
| 828 | +impl_stable_hash_for!(struct crate::dep_graph::WorkProductId { |
829 | 829 | hash |
830 | 830 | }); |
0 commit comments