about summary refs log tree commit diff
path: root/src/librustc_interface
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-03-21 03:17:30 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2020-03-21 22:18:57 +0100
commitfdf2d2d9dc4740eb9d3d18c8a1d52c520c912565 (patch)
tree4d888f72f988b467290b8f99e568ec3ac887e9a6 /src/librustc_interface
parent2c55902e3cb3da8192ca5e4811896bf3f00b3faf (diff)
downloadrust-fdf2d2d9dc4740eb9d3d18c8a1d52c520c912565.tar.gz
rust-fdf2d2d9dc4740eb9d3d18c8a1d52c520c912565.zip
dep_graph.assert_ignored() -> rustc_interface
Diffstat (limited to 'src/librustc_interface')
-rw-r--r--src/librustc_interface/passes.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/librustc_interface/passes.rs b/src/librustc_interface/passes.rs
index c331b1e3d1e..d3ed2fc89c1 100644
--- a/src/librustc_interface/passes.rs
+++ b/src/librustc_interface/passes.rs
@@ -439,10 +439,14 @@ pub fn lower_to_hir<'res, 'tcx>(
     krate: &'res ast::Crate,
     arena: &'tcx rustc_ast_lowering::Arena<'tcx>,
 ) -> Crate<'tcx> {
+    // We're constructing the HIR here; we don't care what we will
+    // read, since we haven't even constructed the *input* to
+    // incr. comp. yet.
+    dep_graph.assert_ignored();
+
     // Lower AST to HIR.
     let hir_crate = rustc_ast_lowering::lower_crate(
         sess,
-        &dep_graph,
         &krate,
         resolver,
         rustc_parse::nt_to_tokenstream,