Skip to content

Commit ff125ff

Browse files
committed
Move some other passes into a parallel block
1 parent efe44ff commit ff125ff

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

src/librustc_interface/passes.rs

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -845,21 +845,24 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
845845
sess.time("MIR_borrow_checking", || {
846846
tcx.par_body_owners(|def_id| tcx.ensure().mir_borrowck(def_id));
847847
});
848+
},
849+
{
850+
sess.time("dumping_chalk_like_clauses", || {
851+
rustc_traits::lowering::dump_program_clauses(tcx);
852+
});
853+
},
854+
{
855+
sess.time("MIR_effect_checking", || {
856+
for def_id in tcx.body_owners() {
857+
mir::transform::check_unsafety::check_unsafety(tcx, def_id)
858+
}
859+
});
860+
},
861+
{
862+
sess.time("layout_testing", || layout_test::test_layout(tcx));
848863
}
849864
);
850865

851-
sess.time("dumping_chalk_like_clauses", || {
852-
rustc_traits::lowering::dump_program_clauses(tcx);
853-
});
854-
855-
sess.time("MIR_effect_checking", || {
856-
for def_id in tcx.body_owners() {
857-
mir::transform::check_unsafety::check_unsafety(tcx, def_id)
858-
}
859-
});
860-
861-
sess.time("layout_testing", || layout_test::test_layout(tcx));
862-
863866
// Avoid overwhelming user with errors if borrow checking failed.
864867
// I'm not sure how helpful this is, to be honest, but it avoids a
865868
// lot of annoying errors in the compile-fail tests (basically,

0 commit comments

Comments
 (0)