Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit e8c09fd

Browse files
committed
Set bless output of MIR tests to panic=unwind
Make the default MIR test and bless output consistent.
1 parent 5a398d3 commit e8c09fd

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/bootstrap/src/core/build_steps/test.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,13 +1525,12 @@ You can add that mapping by changing MIR_OPT_BLESS_TARGET_MAPPING in src/bootstr
15251525
});
15261526

15271527
for target in targets {
1528-
run(target);
1529-
15301528
let panic_abort_target = builder.ensure(MirOptPanicAbortSyntheticTarget {
15311529
compiler: self.compiler,
15321530
base: target,
15331531
});
15341532
run(panic_abort_target);
1533+
run(target);
15351534
}
15361535
} else {
15371536
run(self.target);

tests/mir-opt/uninhabited_enum_branching.otherwise_t5_uninhabited_default.UninhabitedEnumBranching.diff

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
}
4949

5050
bb5: {
51-
drop(_2) -> [return: bb6, unwind unreachable];
51+
drop(_2) -> [return: bb6, unwind: bb7];
5252
}
5353

5454
bb6: {
@@ -57,5 +57,9 @@
5757
_0 = const ();
5858
return;
5959
}
60+
61+
bb7 (cleanup): {
62+
resume;
63+
}
6064
}
6165

0 commit comments

Comments
 (0)