@@ -797,9 +797,16 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> {
797
797
// passes are timed inside typeck
798
798
rustc_hir_analysis:: check_crate ( tcx) ?;
799
799
800
- sess. time ( "MIR_borrow_checking" , || {
801
- tcx. hir ( ) . par_body_owners ( |def_id| tcx. ensure ( ) . mir_borrowck ( def_id) ) ;
802
- } ) ;
800
+ parallel ! (
801
+ {
802
+ tcx. ensure( ) . effective_visibilities( ( ) ) ;
803
+ } ,
804
+ {
805
+ sess. time( "MIR_borrow_checking" , || {
806
+ tcx. hir( ) . par_body_owners( |def_id| tcx. ensure( ) . mir_borrowck( def_id) ) ;
807
+ } ) ;
808
+ }
809
+ ) ;
803
810
804
811
sess. time ( "MIR_effect_checking" , || {
805
812
for def_id in tcx. hir ( ) . body_owners ( ) {
@@ -845,25 +852,18 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> {
845
852
sess. time ( "misc_checking_3" , || {
846
853
parallel ! (
847
854
{
848
- tcx. ensure( ) . effective_visibilities( ( ) ) ;
849
-
850
- parallel!(
851
- {
852
- tcx. ensure( ) . check_private_in_public( ( ) ) ;
853
- } ,
854
- {
855
- tcx. hir( )
856
- . par_for_each_module( |module| tcx. ensure( ) . check_mod_deathness( module) ) ;
857
- } ,
858
- {
859
- sess. time( "lint_checking" , || {
860
- rustc_lint:: check_crate( tcx) ;
861
- } ) ;
862
- } ,
863
- {
864
- tcx. ensure( ) . clashing_extern_declarations( ( ) ) ;
865
- }
866
- ) ;
855
+ tcx. ensure( ) . check_private_in_public( ( ) ) ;
856
+ } ,
857
+ {
858
+ tcx. hir( ) . par_for_each_module( |module| tcx. ensure( ) . check_mod_deathness( module) ) ;
859
+ } ,
860
+ {
861
+ sess. time( "lint_checking" , || {
862
+ rustc_lint:: check_crate( tcx) ;
863
+ } ) ;
864
+ } ,
865
+ {
866
+ tcx. ensure( ) . clashing_extern_declarations( ( ) ) ;
867
867
} ,
868
868
{
869
869
sess. time( "privacy_checking_modules" , || {
0 commit comments