@@ -834,9 +834,16 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
834
834
) ;
835
835
} ) ;
836
836
837
- sess. time ( "MIR_borrow_checking" , || {
838
- tcx. par_body_owners ( |def_id| tcx. ensure ( ) . mir_borrowck ( def_id) ) ;
839
- } ) ;
837
+ parallel ! (
838
+ {
839
+ tcx. ensure( ) . privacy_access_levels( LOCAL_CRATE ) ;
840
+ } ,
841
+ {
842
+ sess. time( "MIR_borrow_checking" , || {
843
+ tcx. par_body_owners( |def_id| tcx. ensure( ) . mir_borrowck( def_id) ) ;
844
+ } ) ;
845
+ }
846
+ ) ;
840
847
841
848
sess. time ( "dumping_chalk_like_clauses" , || {
842
849
rustc_traits:: lowering:: dump_program_clauses ( tcx) ;
@@ -862,28 +869,20 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
862
869
sess. time ( "misc_checking_3" , || {
863
870
parallel ! (
864
871
{
865
- tcx. ensure( ) . privacy_access_levels( LOCAL_CRATE ) ;
866
-
867
- parallel!(
868
- {
869
- tcx. ensure( ) . check_private_in_public( LOCAL_CRATE ) ;
870
- } ,
871
- {
872
- sess. time( "death_checking" , || rustc_passes:: dead:: check_crate( tcx) ) ;
873
- } ,
874
- {
875
- sess. time( "unused_lib_feature_checking" , || {
876
- rustc_passes:: stability:: check_unused_or_stable_features( tcx)
877
- } ) ;
878
- } ,
879
- {
880
- sess. time( "lint_checking" , || {
881
- rustc_lint:: check_crate( tcx, || {
882
- rustc_lint:: BuiltinCombinedLateLintPass :: new( )
883
- } ) ;
884
- } ) ;
885
- }
886
- ) ;
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, || rustc_lint:: BuiltinCombinedLateLintPass :: new( ) ) ;
885
+ } ) ;
887
886
} ,
888
887
{
889
888
sess. time( "privacy_checking_modules" , || {
0 commit comments