Skip to content

Commit 25ed288

Browse files
committed
Update mir-opt expected output for matches! macro
1 parent 0e30629 commit 25ed288

8 files changed

+26
-10
lines changed

tests/mir-opt/issues/issue_59352.num_to_digit.PreCodegen.after.32bit.panic-abort.mir

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ fn num_to_digit(_1: char) -> u32 {
88
let _2: std::option::Option<u32>;
99
scope 2 (inlined Option::<u32>::is_some) {
1010
let mut _3: isize;
11+
scope 3 {
12+
}
1113
}
1214
}
13-
scope 3 (inlined #[track_caller] Option::<u32>::unwrap) {
15+
scope 4 (inlined #[track_caller] Option::<u32>::unwrap) {
1416
let mut _5: isize;
1517
let mut _6: !;
16-
scope 4 {
18+
scope 5 {
1719
}
1820
}
1921

tests/mir-opt/issues/issue_59352.num_to_digit.PreCodegen.after.32bit.panic-unwind.mir

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ fn num_to_digit(_1: char) -> u32 {
88
let _2: std::option::Option<u32>;
99
scope 2 (inlined Option::<u32>::is_some) {
1010
let mut _3: isize;
11+
scope 3 {
12+
}
1113
}
1214
}
13-
scope 3 (inlined #[track_caller] Option::<u32>::unwrap) {
15+
scope 4 (inlined #[track_caller] Option::<u32>::unwrap) {
1416
let mut _5: isize;
1517
let mut _6: !;
16-
scope 4 {
18+
scope 5 {
1719
}
1820
}
1921

tests/mir-opt/issues/issue_59352.num_to_digit.PreCodegen.after.64bit.panic-abort.mir

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ fn num_to_digit(_1: char) -> u32 {
88
let _2: std::option::Option<u32>;
99
scope 2 (inlined Option::<u32>::is_some) {
1010
let mut _3: isize;
11+
scope 3 {
12+
}
1113
}
1214
}
13-
scope 3 (inlined #[track_caller] Option::<u32>::unwrap) {
15+
scope 4 (inlined #[track_caller] Option::<u32>::unwrap) {
1416
let mut _5: isize;
1517
let mut _6: !;
16-
scope 4 {
18+
scope 5 {
1719
}
1820
}
1921

tests/mir-opt/issues/issue_59352.num_to_digit.PreCodegen.after.64bit.panic-unwind.mir

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ fn num_to_digit(_1: char) -> u32 {
88
let _2: std::option::Option<u32>;
99
scope 2 (inlined Option::<u32>::is_some) {
1010
let mut _3: isize;
11+
scope 3 {
12+
}
1113
}
1214
}
13-
scope 3 (inlined #[track_caller] Option::<u32>::unwrap) {
15+
scope 4 (inlined #[track_caller] Option::<u32>::unwrap) {
1416
let mut _5: isize;
1517
let mut _6: !;
16-
scope 4 {
18+
scope 5 {
1719
}
1820
}
1921

tests/mir-opt/matches_reduce_branches.foo.MatchBranchSimplification.diff

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
let mut _2: bool;
88
let mut _3: isize;
99
+ let mut _4: isize;
10+
scope 1 {
11+
}
1012

1113
bb0: {
1214
StorageLive(_2);

tests/mir-opt/pre-codegen/checked_ops.step_forward.PreCodegen.after.panic-abort.mir

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ fn step_forward(_1: u16, _2: usize) -> u16 {
2525
}
2626
scope 8 (inlined Option::<u16>::is_none) {
2727
scope 9 (inlined Option::<u16>::is_some) {
28+
scope 10 {
29+
}
2830
}
2931
}
30-
scope 10 (inlined core::num::<impl u16>::wrapping_add) {
32+
scope 11 (inlined core::num::<impl u16>::wrapping_add) {
3133
}
3234
}
3335

tests/mir-opt/pre-codegen/checked_ops.step_forward.PreCodegen.after.panic-unwind.mir

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ fn step_forward(_1: u16, _2: usize) -> u16 {
2525
}
2626
scope 8 (inlined Option::<u16>::is_none) {
2727
scope 9 (inlined Option::<u16>::is_some) {
28+
scope 10 {
29+
}
2830
}
2931
}
30-
scope 10 (inlined core::num::<impl u16>::wrapping_add) {
32+
scope 11 (inlined core::num::<impl u16>::wrapping_add) {
3133
}
3234
}
3335

tests/mir-opt/pre-codegen/matches_macro.issue_77355_opt.PreCodegen.after.mir

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ fn issue_77355_opt(_1: Foo) -> u64 {
44
debug num => _1;
55
let mut _0: u64;
66
let mut _2: isize;
7+
scope 1 {
8+
}
79

810
bb0: {
911
_2 = discriminant(_1);

0 commit comments

Comments
 (0)