]> git.lizzy.rs Git - rust.git/commitdiff
remove `EffectCheck`
authorNiko Matsakis <niko@alum.mit.edu>
Tue, 4 Apr 2017 15:19:36 +0000 (11:19 -0400)
committerNiko Matsakis <niko@alum.mit.edu>
Tue, 4 Apr 2017 15:19:36 +0000 (11:19 -0400)
src/librustc/dep_graph/dep_node.rs
src/librustc/middle/effect.rs

index 0521b50df4d2d961b59e337a7d1ef9fba97ccac8..b3878819378f7870ed8d5df20b14facb03686b0e 100644 (file)
@@ -64,7 +64,6 @@ pub enum DepNode<D: Clone + Debug> {
     CollectItem(D),
     CollectItemSig(D),
     Coherence,
-    EffectCheck,
     Liveness,
     Resolve,
     EntryPoint,
@@ -219,7 +218,6 @@ pub fn map_def<E, OP>(&self, mut op: OP) -> Option<DepNode<E>>
             PluginRegistrar => Some(PluginRegistrar),
             StabilityIndex => Some(StabilityIndex),
             Coherence => Some(Coherence),
-            EffectCheck => Some(EffectCheck),
             Liveness => Some(Liveness),
             Resolve => Some(Resolve),
             EntryPoint => Some(EntryPoint),
index 5af8e7e52d888407f57518c0bfd4addaedda1f6e..d2b8ed8c2970770250d35fe78699d06d548d4316 100644 (file)
@@ -12,7 +12,6 @@
 //! `unsafe`.
 use self::RootUnsafeContext::*;
 
-use dep_graph::DepNode;
 use ty::{self, Ty, TyCtxt};
 use ty::MethodCall;
 use lint;
@@ -241,8 +240,6 @@ fn visit_pat(&mut self, pat: &'tcx hir::Pat) {
 }
 
 pub fn check_crate<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>) {
-    let _task = tcx.dep_graph.in_task(DepNode::EffectCheck);
-
     let mut visitor = EffectCheckVisitor {
         tcx: tcx,
         tables: &ty::TypeckTables::empty(),