Skip to content

Commit dfaed34

Browse files
committed
Move some other passes into a parallel block
1 parent 185a37e commit dfaed34

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
@@ -842,21 +842,24 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
842842
sess.time("MIR_borrow_checking", || {
843843
tcx.par_body_owners(|def_id| tcx.ensure().mir_borrowck(def_id));
844844
});
845+
},
846+
{
847+
sess.time("dumping_chalk_like_clauses", || {
848+
rustc_traits::lowering::dump_program_clauses(tcx);
849+
});
850+
},
851+
{
852+
sess.time("MIR_effect_checking", || {
853+
for def_id in tcx.body_owners() {
854+
mir::transform::check_unsafety::check_unsafety(tcx, def_id)
855+
}
856+
});
857+
},
858+
{
859+
sess.time("layout_testing", || layout_test::test_layout(tcx));
845860
}
846861
);
847862

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

0 commit comments

Comments
 (0)