This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 3636#![ feature( specialization) ]
3737#![ recursion_limit = "256" ]
3838
39- use rustc:: dep_graph:: DepGraph ;
4039use rustc:: hir:: map:: definitions:: { DefKey , DefPathData , Definitions } ;
4140use rustc_ast:: ast;
4241use rustc_ast:: ast:: * ;
@@ -261,17 +260,11 @@ impl<'a> ImplTraitContext<'_, 'a> {
261260
262261pub 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 {
Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments