about summary refs log tree commit diff
path: root/src/librustc/dep_graph/dep_node.rs
diff options
context:
space:
mode:
authorAlexander Regueiro <alexreg@me.com>2018-01-02 23:22:09 +0000
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>2018-03-08 08:09:01 +0100
commitb2b101befcfe1ca4ea57862675df0de5ca7b15bd (patch)
treed314f6ba6112589a114463de58929b7986271e47 /src/librustc/dep_graph/dep_node.rs
parent4c9b1b13ddc3f3120bb7aee106a261613dfcb000 (diff)
downloadrust-b2b101befcfe1ca4ea57862675df0de5ca7b15bd.tar.gz
rust-b2b101befcfe1ca4ea57862675df0de5ca7b15bd.zip
Prepare for using miri in trans
Diffstat (limited to 'src/librustc/dep_graph/dep_node.rs')
-rw-r--r--src/librustc/dep_graph/dep_node.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc/dep_graph/dep_node.rs b/src/librustc/dep_graph/dep_node.rs
index ed46296389d..6824c015eab 100644
--- a/src/librustc/dep_graph/dep_node.rs
+++ b/src/librustc/dep_graph/dep_node.rs
@@ -60,15 +60,15 @@
 //! user of the `DepNode` API of having to know how to compute the expected
 //! fingerprint for a given set of node parameters.
 
+use mir::interpret::{GlobalId};
 use hir::def_id::{CrateNum, DefId, DefIndex, CRATE_DEF_INDEX};
 use hir::map::DefPathHash;
 use hir::{HirId, ItemLocalId};
 
-use ich::Fingerprint;
+use ich::{Fingerprint, StableHashingContext};
+use rustc_data_structures::stable_hasher::{StableHasher, HashStable};
 use ty::{TyCtxt, Instance, InstanceDef, ParamEnv, ParamEnvAnd, PolyTraitRef, Ty};
 use ty::subst::Substs;
-use rustc_data_structures::stable_hasher::{StableHasher, HashStable};
-use ich::StableHashingContext;
 use std::fmt;
 use std::hash::Hash;
 use syntax_pos::symbol::InternedString;
@@ -518,7 +518,7 @@ define_dep_nodes!( <'tcx>
     [] TypeckTables(DefId),
     [] UsedTraitImports(DefId),
     [] HasTypeckTables(DefId),
-    [] ConstEval { param_env: ParamEnvAnd<'tcx, (DefId, &'tcx Substs<'tcx>)> },
+    [] ConstEval { param_env: ParamEnvAnd<'tcx, GlobalId<'tcx>> },
     [] CheckMatch(DefId),
     [] SymbolName(DefId),
     [] InstanceSymbolName { instance: Instance<'tcx> },