Skip to content

Commit 06de909

Browse files
committed
Change pretty-printing.
1 parent 44406ae commit 06de909

10 files changed

+10
-10
lines changed

compiler/rustc_middle/src/mir/pretty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,7 @@ impl<'tcx> Debug for Operand<'tcx> {
12551255
Constant(ref a) => write!(fmt, "{a:?}"),
12561256
Copy(ref place) => write!(fmt, "copy {place:?}"),
12571257
Move(ref place) => write!(fmt, "move {place:?}"),
1258-
RuntimeChecks(checks) => write!(fmt, "const {checks:?}"),
1258+
RuntimeChecks(checks) => write!(fmt, "{checks:?}"),
12591259
}
12601260
}
12611261
}

tests/mir-opt/dont_reset_cast_kind_without_updating_operand.test.GVN.32bit.panic-abort.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
StorageLive(_21);
9595
StorageLive(_22);
9696
StorageLive(_23);
97-
switchInt(const UbChecks) -> [0: bb6, otherwise: bb5];
97+
switchInt(UbChecks) -> [0: bb6, otherwise: bb5];
9898
}
9999

100100
bb1: {

tests/mir-opt/dont_reset_cast_kind_without_updating_operand.test.GVN.64bit.panic-abort.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
StorageLive(_21);
9595
StorageLive(_22);
9696
StorageLive(_23);
97-
switchInt(const UbChecks) -> [0: bb6, otherwise: bb5];
97+
switchInt(UbChecks) -> [0: bb6, otherwise: bb5];
9898
}
9999

100100
bb1: {

tests/mir-opt/inline/unchecked_shifts.unchecked_shl_unsigned_smaller.Inline.panic-abort.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
_4 = copy _2;
2323
- _0 = core::num::<impl u16>::unchecked_shl(move _3, move _4) -> [return: bb1, unwind unreachable];
2424
+ StorageLive(_5);
25-
+ switchInt(const UbChecks) -> [0: bb2, otherwise: bb1];
25+
+ switchInt(UbChecks) -> [0: bb2, otherwise: bb1];
2626
}
2727

2828
bb1: {

tests/mir-opt/inline/unchecked_shifts.unchecked_shl_unsigned_smaller.Inline.panic-unwind.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
_4 = copy _2;
2323
- _0 = core::num::<impl u16>::unchecked_shl(move _3, move _4) -> [return: bb1, unwind continue];
2424
+ StorageLive(_5);
25-
+ switchInt(const UbChecks) -> [0: bb2, otherwise: bb1];
25+
+ switchInt(UbChecks) -> [0: bb2, otherwise: bb1];
2626
}
2727

2828
bb1: {

tests/mir-opt/inline/unchecked_shifts.unchecked_shr_signed_bigger.Inline.panic-abort.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
_4 = copy _2;
2323
- _0 = core::num::<impl i64>::unchecked_shr(move _3, move _4) -> [return: bb1, unwind unreachable];
2424
+ StorageLive(_5);
25-
+ switchInt(const UbChecks) -> [0: bb2, otherwise: bb1];
25+
+ switchInt(UbChecks) -> [0: bb2, otherwise: bb1];
2626
}
2727

2828
bb1: {

tests/mir-opt/inline/unchecked_shifts.unchecked_shr_signed_bigger.Inline.panic-unwind.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
_4 = copy _2;
2323
- _0 = core::num::<impl i64>::unchecked_shr(move _3, move _4) -> [return: bb1, unwind continue];
2424
+ StorageLive(_5);
25-
+ switchInt(const UbChecks) -> [0: bb2, otherwise: bb1];
25+
+ switchInt(UbChecks) -> [0: bb2, otherwise: bb1];
2626
}
2727

2828
bb1: {

tests/mir-opt/inline/unwrap_unchecked.unwrap_unchecked.Inline.panic-abort.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
+ }
3434
+
3535
+ bb2: {
36-
+ assume(const UbChecks);
36+
+ assume(UbChecks);
3737
+ _4 = unreachable_unchecked::precondition_check() -> [return: bb1, unwind unreachable];
3838
+ }
3939
+

tests/mir-opt/inline/unwrap_unchecked.unwrap_unchecked.Inline.panic-unwind.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
- bb2 (cleanup): {
3838
- resume;
3939
+ bb2: {
40-
+ assume(const UbChecks);
40+
+ assume(UbChecks);
4141
+ _4 = unreachable_unchecked::precondition_check() -> [return: bb1, unwind unreachable];
4242
+ }
4343
+

tests/mir-opt/instsimplify/ub_check.unwrap_unchecked.InstSimplify-after-simplifycfg.diff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
}
3333

3434
bb2: {
35-
- assume(const UbChecks);
35+
- assume(UbChecks);
3636
+ assume(const false);
3737
_4 = unreachable_unchecked::precondition_check() -> [return: bb1, unwind unreachable];
3838
}

0 commit comments

Comments
 (0)