File tree 1 file changed +10
-10
lines changed
compiler/rustc_driver_impl/src
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ pub trait Callbacks {
173
173
fn after_expansion<' tcx>(
174
174
& mut self ,
175
175
_compiler: & interface:: Compiler ,
176
- _queries : & ' tcx Queries <' tcx>,
176
+ _tcx : TyCtxt <' tcx>,
177
177
) -> Compilation {
178
178
Compilation :: Continue
179
179
}
@@ -425,18 +425,18 @@ fn run_compiler(
425
425
return early_exit( ) ;
426
426
}
427
427
428
- // Make sure name resolution and macro expansion is run.
429
- queries. global_ctxt( ) . enter( |tcx| tcx. resolver_for_lowering( ) ) ;
428
+ queries. global_ctxt( ) . enter( |tcx| {
429
+ // Make sure name resolution and macro expansion is run.
430
+ let _ = tcx. resolver_for_lowering( ) ;
430
431
431
- if let Some ( metrics_dir) = & sess. opts. unstable_opts. metrics_dir {
432
- queries . global_ctxt ( ) . enter ( |tcxt| dump_feature_usage_metrics( tcxt , metrics_dir) ) ;
433
- }
432
+ if let Some ( metrics_dir) = & sess. opts. unstable_opts. metrics_dir {
433
+ dump_feature_usage_metrics( tcx , metrics_dir) ;
434
+ }
434
435
435
- if callbacks. after_expansion( compiler, queries ) == Compilation :: Stop {
436
- return early_exit( ) ;
437
- }
436
+ if callbacks. after_expansion( compiler, tcx ) == Compilation :: Stop {
437
+ return early_exit( ) ;
438
+ }
438
439
439
- queries. global_ctxt( ) . enter( |tcx| {
440
440
passes:: write_dep_info( tcx) ;
441
441
442
442
if sess. opts. output_types. contains_key( & OutputType :: DepInfo )
You can’t perform that action at this time.
0 commit comments