File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 36
36
#![ feature( specialization) ]
37
37
#![ recursion_limit = "256" ]
38
38
39
- use rustc:: dep_graph:: DepGraph ;
40
39
use rustc:: hir:: map:: definitions:: { DefKey , DefPathData , Definitions } ;
41
40
use rustc_ast:: ast;
42
41
use rustc_ast:: ast:: * ;
@@ -261,17 +260,11 @@ impl<'a> ImplTraitContext<'_, 'a> {
261
260
262
261
pub fn lower_crate < ' a , ' hir > (
263
262
sess : & ' a Session ,
264
- dep_graph : & ' a DepGraph ,
265
263
krate : & ' a Crate ,
266
264
resolver : & ' a mut dyn Resolver ,
267
265
nt_to_tokenstream : NtToTokenstream ,
268
266
arena : & ' hir Arena < ' hir > ,
269
267
) -> 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
-
275
268
let _prof_timer = sess. prof . verbose_generic_activity ( "hir_lowering" ) ;
276
269
277
270
LoweringContext {
Original file line number Diff line number Diff line change @@ -439,10 +439,14 @@ pub fn lower_to_hir<'res, 'tcx>(
439
439
krate : & ' res ast:: Crate ,
440
440
arena : & ' tcx rustc_ast_lowering:: Arena < ' tcx > ,
441
441
) -> 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
+
442
447
// Lower AST to HIR.
443
448
let hir_crate = rustc_ast_lowering:: lower_crate (
444
449
sess,
445
- & dep_graph,
446
450
& krate,
447
451
resolver,
448
452
rustc_parse:: nt_to_tokenstream,
You can’t perform that action at this time.
0 commit comments