Skip to content

Commit 0f9af60

Browse files
bless tests
1 parent 35566bf commit 0f9af60

4 files changed

+17
-27
lines changed

src/test/mir-opt/inline/inline_instruction_set.default.Inline.diff

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
- }
3737
-
3838
- bb3: {
39-
+ _3 = const (); // scope 1 at $DIR/inline-instruction-set.rs:53:5: 53:30
4039
StorageDead(_3); // scope 0 at $DIR/inline-instruction-set.rs:53:30: 53:31
4140
_0 = const (); // scope 0 at $DIR/inline-instruction-set.rs:50:18: 54:2
4241
return; // scope 0 at $DIR/inline-instruction-set.rs:54:2: 54:2

src/test/mir-opt/inline/inline_instruction_set.t32.Inline.diff

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
- }
2828
-
2929
- bb2: {
30-
+ _2 = const (); // scope 1 at $DIR/inline-instruction-set.rs:43:5: 43:26
3130
StorageDead(_2); // scope 0 at $DIR/inline-instruction-set.rs:43:26: 43:27
3231
StorageLive(_3); // scope 0 at $DIR/inline-instruction-set.rs:46:5: 46:30
3332
- _3 = instruction_set_default() -> bb3; // scope 0 at $DIR/inline-instruction-set.rs:46:5: 46:30

src/test/mir-opt/matches_reduce_branches.foo.MatchBranchSimplification.64bit.diff

+16-13
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,25 @@
55
debug bar => _1; // in scope 0 at $DIR/matches_reduce_branches.rs:7:8: 7:11
66
let mut _0: (); // return place in scope 0 at $DIR/matches_reduce_branches.rs:7:25: 7:25
77
let mut _2: isize; // in scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
8+
+ let mut _3: isize; // in scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
89

910
bb0: {
1011
_2 = discriminant(_1); // scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
11-
switchInt(move _2) -> [0_isize: bb2, otherwise: bb1]; // scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
12-
}
13-
14-
bb1: {
15-
_0 = const (); // scope 0 at $DIR/matches_reduce_branches.rs:10:6: 10:6
16-
goto -> bb3; // scope 0 at $DIR/matches_reduce_branches.rs:8:5: 10:6
17-
}
18-
19-
bb2: {
20-
goto -> bb3; // scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
21-
}
22-
23-
bb3: {
12+
- switchInt(move _2) -> [0_isize: bb2, otherwise: bb1]; // scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
13+
- }
14+
-
15+
- bb1: {
16+
- goto -> bb3; // scope 0 at $DIR/matches_reduce_branches.rs:8:5: 10:6
17+
- }
18+
-
19+
- bb2: {
20+
- goto -> bb3; // scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
21+
- }
22+
-
23+
- bb3: {
24+
+ StorageLive(_3); // scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
25+
+ _3 = move _2; // scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
26+
+ StorageDead(_3); // scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
2427
return; // scope 0 at $DIR/matches_reduce_branches.rs:11:2: 11:2
2528
}
2629
}

src/test/mir-opt/matches_reduce_branches.foo.PreCodegen.before.64bit.mir

+1-12
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,8 @@
33
fn foo(_1: Option<()>) -> () {
44
debug bar => _1; // in scope 0 at $DIR/matches_reduce_branches.rs:7:8: 7:11
55
let mut _0: (); // return place in scope 0 at $DIR/matches_reduce_branches.rs:7:25: 7:25
6-
let mut _2: isize; // in scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
76

87
bb0: {
9-
_2 = discriminant(_1); // scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
10-
switchInt(move _2) -> [0_isize: bb2, otherwise: bb1]; // scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
11-
}
12-
13-
bb1: {
14-
_0 = const (); // scope 0 at $DIR/matches_reduce_branches.rs:10:6: 10:6
15-
return; // scope 0 at $DIR/matches_reduce_branches.rs:8:5: 10:6
16-
}
17-
18-
bb2: {
19-
return; // scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
8+
return; // scope 0 at $DIR/matches_reduce_branches.rs:11:2: 11:2
209
}
2110
}

0 commit comments

Comments
 (0)