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 @@ -396,10 +396,6 @@ fn run_compiler(
396
396
queries. global_ctxt( ) ?. enter( |tcx| {
397
397
tcx. ensure( ) . early_lint_checks( ( ) ) ;
398
398
pretty:: print( sess, pp_mode, pretty:: PrintExtra :: NeedsAstMap { tcx } ) ;
399
- Ok ( ( ) )
400
- } ) ?;
401
-
402
- queries. global_ctxt( ) ?. enter( |tcx| {
403
399
passes:: write_dep_info( tcx) ;
404
400
} ) ;
405
401
} else {
@@ -429,19 +425,19 @@ fn run_compiler(
429
425
430
426
queries. global_ctxt( ) ?. enter( |tcx| {
431
427
passes:: write_dep_info( tcx) ;
432
- } ) ;
433
428
434
- if sess. opts. output_types. contains_key( & OutputType :: DepInfo )
435
- && sess. opts. output_types. len( ) == 1
436
- {
437
- return early_exit( ) ;
438
- }
429
+ if sess. opts. output_types. contains_key( & OutputType :: DepInfo )
430
+ && sess. opts. output_types. len( ) == 1
431
+ {
432
+ return early_exit( ) ;
433
+ }
439
434
440
- if sess. opts. unstable_opts. no_analysis {
441
- return early_exit( ) ;
442
- }
435
+ if sess. opts. unstable_opts. no_analysis {
436
+ return early_exit( ) ;
437
+ }
443
438
444
- queries. global_ctxt( ) ?. enter( |tcx| tcx. analysis( ( ) ) ) ?;
439
+ tcx. analysis( ( ) ) ?;
440
+ } ) ?;
445
441
446
442
if callbacks. after_analysis( compiler, queries) == Compilation :: Stop {
447
443
return early_exit( ) ;
You can’t perform that action at this time.
0 commit comments