@@ -837,9 +837,16 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
837837 ) ;
838838 } ) ;
839839
840- sess. time ( "MIR_borrow_checking" , || {
841- tcx. par_body_owners ( |def_id| tcx. ensure ( ) . mir_borrowck ( def_id) ) ;
842- } ) ;
840+ parallel ! (
841+ {
842+ tcx. ensure( ) . privacy_access_levels( LOCAL_CRATE ) ;
843+ } ,
844+ {
845+ sess. time( "MIR_borrow_checking" , || {
846+ tcx. par_body_owners( |def_id| tcx. ensure( ) . mir_borrowck( def_id) ) ;
847+ } ) ;
848+ }
849+ ) ;
843850
844851 sess. time ( "dumping_chalk_like_clauses" , || {
845852 rustc_traits:: lowering:: dump_program_clauses ( tcx) ;
@@ -865,28 +872,20 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
865872 sess. time ( "misc_checking_3" , || {
866873 parallel ! (
867874 {
868- tcx. ensure( ) . privacy_access_levels( LOCAL_CRATE ) ;
869-
870- parallel!(
871- {
872- tcx. ensure( ) . check_private_in_public( LOCAL_CRATE ) ;
873- } ,
874- {
875- sess. time( "death_checking" , || rustc_passes:: dead:: check_crate( tcx) ) ;
876- } ,
877- {
878- sess. time( "unused_lib_feature_checking" , || {
879- rustc_passes:: stability:: check_unused_or_stable_features( tcx)
880- } ) ;
881- } ,
882- {
883- sess. time( "lint_checking" , || {
884- rustc_lint:: check_crate( tcx, || {
885- rustc_lint:: BuiltinCombinedLateLintPass :: new( )
886- } ) ;
887- } ) ;
888- }
889- ) ;
875+ tcx. ensure( ) . check_private_in_public( LOCAL_CRATE ) ;
876+ } ,
877+ {
878+ sess. time( "death_checking" , || rustc_passes:: dead:: check_crate( tcx) ) ;
879+ } ,
880+ {
881+ sess. time( "unused_lib_feature_checking" , || {
882+ rustc_passes:: stability:: check_unused_or_stable_features( tcx)
883+ } ) ;
884+ } ,
885+ {
886+ sess. time( "lint_checking" , || {
887+ rustc_lint:: check_crate( tcx, || rustc_lint:: BuiltinCombinedLateLintPass :: new( ) ) ;
888+ } ) ;
890889 } ,
891890 {
892891 sess. time( "privacy_checking_modules" , || {
0 commit comments