@@ -797,9 +797,16 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> {
797797 // passes are timed inside typeck
798798 rustc_hir_analysis:: check_crate ( tcx) ?;
799799
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+ ) ;
803810
804811 sess. time ( "MIR_effect_checking" , || {
805812 for def_id in tcx. hir ( ) . body_owners ( ) {
@@ -845,25 +852,18 @@ fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> {
845852 sess. time ( "misc_checking_3" , || {
846853 parallel ! (
847854 {
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( ( ) ) ;
867867 } ,
868868 {
869869 sess. time( "privacy_checking_modules" , || {
0 commit comments