Skip to content

Commit 9aaca1d

Browse files
Update MIR opt tests with new name
1 parent 58c996c commit 9aaca1d

6 files changed

+8
-8
lines changed

src/test/mir-opt/const_prop/switch_int.main.SimplifyBranches-after-const-prop.diff renamed to src/test/mir-opt/const_prop/switch_int.main.SimplifyConstCondition-after-const-prop.diff

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
- // MIR for `main` before SimplifyBranches-after-const-prop
2-
+ // MIR for `main` after SimplifyBranches-after-const-prop
1+
- // MIR for `main` before SimplifyConstCondition-after-const-prop
2+
+ // MIR for `main` after SimplifyConstCondition-after-const-prop
33

44
fn main() -> () {
55
let mut _0: (); // return place in scope 0 at $DIR/switch_int.rs:6:11: 6:11

src/test/mir-opt/const_prop/switch_int.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
fn foo(_: i32) { }
33

44
// EMIT_MIR switch_int.main.ConstProp.diff
5-
// EMIT_MIR switch_int.main.SimplifyBranches-after-const-prop.diff
5+
// EMIT_MIR switch_int.main.SimplifyConstCondition-after-const-prop.diff
66
fn main() {
77
match 1 {
88
1 => foo(0),

src/test/mir-opt/early_otherwise_branch_68867.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub enum ViewportPercentageLength {
1111
}
1212

1313
// EMIT_MIR early_otherwise_branch_68867.try_sum.EarlyOtherwiseBranch.diff
14-
// EMIT_MIR early_otherwise_branch_68867.try_sum EarlyOtherwiseBranch.before SimplifyBranches-final.after
14+
// EMIT_MIR early_otherwise_branch_68867.try_sum EarlyOtherwiseBranch.before SimplifyConstCondition-final.after
1515
#[no_mangle]
1616
pub extern "C" fn try_sum(
1717
x: &ViewportPercentageLength,
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
- // MIR for `try_sum` before EarlyOtherwiseBranch
2-
+ // MIR for `try_sum` after SimplifyBranches-final
2+
+ // MIR for `try_sum` after SimplifyConstCondition-final
33

44
fn try_sum(_1: &ViewportPercentageLength, _2: &ViewportPercentageLength) -> Result<ViewportPercentageLength, ()> {
55
debug x => _1; // in scope 0 at $DIR/early_otherwise_branch_68867.rs:17:5: 17:6

src/test/mir-opt/simplify_if.main.SimplifyBranches-after-const-prop.diff renamed to src/test/mir-opt/simplify_if.main.SimplifyConstCondition-after-const-prop.diff

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
- // MIR for `main` before SimplifyBranches-after-const-prop
2-
+ // MIR for `main` after SimplifyBranches-after-const-prop
1+
- // MIR for `main` before SimplifyConstCondition-after-const-prop
2+
+ // MIR for `main` after SimplifyConstCondition-after-const-prop
33

44
fn main() -> () {
55
let mut _0: (); // return place in scope 0 at $DIR/simplify_if.rs:5:11: 5:11

src/test/mir-opt/simplify_if.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#[inline(never)]
22
fn noop() {}
33

4-
// EMIT_MIR simplify_if.main.SimplifyBranches-after-const-prop.diff
4+
// EMIT_MIR simplify_if.main.SimplifyConstCondition-after-const-prop.diff
55
fn main() {
66
if false {
77
noop();

0 commit comments

Comments
 (0)