Skip to content

Commit fdf2d2d

Browse files
committed
dep_graph.assert_ignored() -> rustc_interface
1 parent 2c55902 commit fdf2d2d

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/librustc_ast_lowering/lib.rs

-7
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
#![feature(specialization)]
3737
#![recursion_limit = "256"]
3838

39-
use rustc::dep_graph::DepGraph;
4039
use rustc::hir::map::definitions::{DefKey, DefPathData, Definitions};
4140
use rustc_ast::ast;
4241
use rustc_ast::ast::*;
@@ -261,17 +260,11 @@ impl<'a> ImplTraitContext<'_, 'a> {
261260

262261
pub fn lower_crate<'a, 'hir>(
263262
sess: &'a Session,
264-
dep_graph: &'a DepGraph,
265263
krate: &'a Crate,
266264
resolver: &'a mut dyn Resolver,
267265
nt_to_tokenstream: NtToTokenstream,
268266
arena: &'hir Arena<'hir>,
269267
) -> hir::Crate<'hir> {
270-
// We're constructing the HIR here; we don't care what we will
271-
// read, since we haven't even constructed the *input* to
272-
// incr. comp. yet.
273-
dep_graph.assert_ignored();
274-
275268
let _prof_timer = sess.prof.verbose_generic_activity("hir_lowering");
276269

277270
LoweringContext {

src/librustc_interface/passes.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -439,10 +439,14 @@ pub fn lower_to_hir<'res, 'tcx>(
439439
krate: &'res ast::Crate,
440440
arena: &'tcx rustc_ast_lowering::Arena<'tcx>,
441441
) -> Crate<'tcx> {
442+
// We're constructing the HIR here; we don't care what we will
443+
// read, since we haven't even constructed the *input* to
444+
// incr. comp. yet.
445+
dep_graph.assert_ignored();
446+
442447
// Lower AST to HIR.
443448
let hir_crate = rustc_ast_lowering::lower_crate(
444449
sess,
445-
&dep_graph,
446450
&krate,
447451
resolver,
448452
rustc_parse::nt_to_tokenstream,

0 commit comments

Comments
 (0)