about summary refs log tree commit diff
path: root/src
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
parent2c55902e3cb3da8192ca5e4811896bf3f00b3faf (diff)
downloadrust-fdf2d2d9dc4740eb9d3d18c8a1d52c520c912565.tar.gz
rust-fdf2d2d9dc4740eb9d3d18c8a1d52c520c912565.zip
dep_graph.assert_ignored() -> rustc_interface
Diffstat (limited to 'src')
-rw-r--r--src/librustc_ast_lowering/lib.rs7
-rw-r--r--src/librustc_interface/passes.rs6
2 files changed, 5 insertions, 8 deletions
diff --git a/src/librustc_ast_lowering/lib.rs b/src/librustc_ast_lowering/lib.rs
index 5cd869f60ab..b333053f601 100644
--- a/src/librustc_ast_lowering/lib.rs
+++ b/src/librustc_ast_lowering/lib.rs
@@ -36,7 +36,6 @@
 #![feature(specialization)]
 #![recursion_limit = "256"]
 
-use rustc::dep_graph::DepGraph;
 use rustc::hir::map::definitions::{DefKey, DefPathData, Definitions};
 use rustc_ast::ast;
 use rustc_ast::ast::*;
@@ -261,17 +260,11 @@ impl<'a> ImplTraitContext<'_, 'a> {
 
 pub fn lower_crate<'a, 'hir>(
     sess: &'a Session,
-    dep_graph: &'a DepGraph,
     krate: &'a Crate,
     resolver: &'a mut dyn Resolver,
     nt_to_tokenstream: NtToTokenstream,
     arena: &'hir Arena<'hir>,
 ) -> hir::Crate<'hir> {
-    // 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();
-
     let _prof_timer = sess.prof.verbose_generic_activity("hir_lowering");
 
     LoweringContext {
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,