Skip to content

Commit 171b1bb

Browse files
committed
Add a new misc checking 3 block
1 parent db0bd38 commit 171b1bb

File tree

1 file changed

+28
-26
lines changed

1 file changed

+28
-26
lines changed

src/librustc_interface/passes.rs

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -844,31 +844,33 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
844844
);
845845
});
846846

847-
parallel!(
848-
{
849-
tcx.ensure().privacy_access_levels(LOCAL_CRATE);
850-
},
851-
{
852-
sess.time("MIR_borrow_checking", || {
853-
tcx.par_body_owners(|def_id| tcx.ensure().mir_borrowck(def_id));
854-
});
855-
},
856-
{
857-
sess.time("dumping_chalk_like_clauses", || {
858-
rustc_traits::lowering::dump_program_clauses(tcx);
859-
});
860-
},
861-
{
862-
sess.time("MIR_effect_checking", || {
863-
for def_id in tcx.body_owners() {
864-
mir::transform::check_unsafety::check_unsafety(tcx, def_id)
865-
}
866-
});
867-
},
868-
{
869-
sess.time("layout_testing", || layout_test::test_layout(tcx));
870-
}
871-
);
847+
sess.time("misc_checking_3", || {
848+
parallel!(
849+
{
850+
tcx.ensure().privacy_access_levels(LOCAL_CRATE);
851+
},
852+
{
853+
sess.time("MIR_borrow_checking", || {
854+
tcx.par_body_owners(|def_id| tcx.ensure().mir_borrowck(def_id));
855+
});
856+
},
857+
{
858+
sess.time("dumping_chalk_like_clauses", || {
859+
rustc_traits::lowering::dump_program_clauses(tcx);
860+
});
861+
},
862+
{
863+
sess.time("MIR_effect_checking", || {
864+
for def_id in tcx.body_owners() {
865+
mir::transform::check_unsafety::check_unsafety(tcx, def_id)
866+
}
867+
});
868+
},
869+
{
870+
sess.time("layout_testing", || layout_test::test_layout(tcx));
871+
}
872+
);
873+
});
872874

873875
// Avoid overwhelming user with errors if borrow checking failed.
874876
// I'm not sure how helpful this is, to be honest, but it avoids a
@@ -879,7 +881,7 @@ fn analysis(tcx: TyCtxt<'_>, cnum: CrateNum) -> Result<()> {
879881
return Err(ErrorReported);
880882
}
881883

882-
sess.time("misc_checking_3", || {
884+
sess.time("misc_checking_4", || {
883885
parallel!(
884886
{
885887
tcx.ensure().check_private_in_public(LOCAL_CRATE);

0 commit comments

Comments
 (0)