]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/liveness.rs
Instrument a bunch of tasks that employ the HIR map in one way or
[rust.git] / src / librustc / middle / liveness.rs
index 90fa148e0084eb43bed1e683d668f2e453da86bb..5fa9d45934571105dbb43418fe0ac542e7877c4c 100644 (file)
 use self::LiveNodeKind::*;
 use self::VarKind::*;
 
+use dep_graph::DepNode;
 use middle::def::*;
 use middle::pat_util;
 use middle::ty;
@@ -192,6 +193,7 @@ fn visit_fn(&mut self, fk: FnKind<'v>, fd: &'v hir::FnDecl,
 }
 
 pub fn check_crate(tcx: &ty::ctxt) {
+    let _task = tcx.dep_graph.in_task(DepNode::Liveness);
     tcx.map.krate().visit_all_items(&mut IrMaps::new(tcx));
     tcx.sess.abort_if_errors();
 }