File tree 1 file changed +10
-14
lines changed
compiler/rustc_driver_impl/src
1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -394,10 +394,6 @@ fn run_compiler(
394
394
queries. global_ctxt( ) ?. enter( |tcx| {
395
395
tcx. ensure( ) . early_lint_checks( ( ) ) ;
396
396
pretty:: print( sess, pp_mode, pretty:: PrintExtra :: NeedsAstMap { tcx } ) ;
397
- Ok ( ( ) )
398
- } ) ?;
399
-
400
- queries. global_ctxt( ) ?. enter( |tcx| {
401
397
passes:: write_dep_info( tcx) ;
402
398
} ) ;
403
399
} else {
@@ -427,19 +423,19 @@ fn run_compiler(
427
423
428
424
queries. global_ctxt( ) ?. enter( |tcx| {
429
425
passes:: write_dep_info( tcx) ;
430
- } ) ;
431
426
432
- if sess. opts. output_types. contains_key( & OutputType :: DepInfo )
433
- && sess. opts. output_types. len( ) == 1
434
- {
435
- return early_exit( ) ;
436
- }
427
+ if sess. opts. output_types. contains_key( & OutputType :: DepInfo )
428
+ && sess. opts. output_types. len( ) == 1
429
+ {
430
+ return early_exit( ) ;
431
+ }
437
432
438
- if sess. opts. unstable_opts. no_analysis {
439
- return early_exit( ) ;
440
- }
433
+ if sess. opts. unstable_opts. no_analysis {
434
+ return early_exit( ) ;
435
+ }
441
436
442
- queries. global_ctxt( ) ?. enter( |tcx| tcx. analysis( ( ) ) ) ?;
437
+ tcx. analysis( ( ) ) ?;
438
+ } ) ?;
443
439
444
440
if callbacks. after_analysis( compiler, queries) == Compilation :: Stop {
445
441
return early_exit( ) ;
You can’t perform that action at this time.
0 commit comments