2020-08-12 21:35:32 +00:00
|
|
|
- // MIR for `foo` before MatchBranchSimplification
|
|
|
|
+ // MIR for `foo` after MatchBranchSimplification
|
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
fn foo(_1: Option<()>) -> () {
|
2020-10-03 11:18:24 +02:00
|
|
|
debug bar => _1; // in scope 0 at $DIR/matches_reduce_branches.rs:7:8: 7:11
|
|
|
|
let mut _0: (); // return place in scope 0 at $DIR/matches_reduce_branches.rs:7:25: 7:25
|
|
|
|
let mut _2: isize; // in scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
|
2020-08-12 21:35:32 +00:00
|
|
|
|
|
|
|
bb0: {
|
2020-10-03 11:18:24 +02:00
|
|
|
_2 = discriminant(_1); // scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
|
2021-03-15 21:58:54 -04:00
|
|
|
switchInt(move _2) -> [0_isize: bb2, otherwise: bb1]; // scope 0 at $DIR/matches_reduce_branches.rs:8:22: 8:26
|
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
|
|
|
_0 = const (); // scope 0 at $DIR/matches_reduce_branches.rs:10:6: 10:6
|
|
|
|
goto -> bb3; // scope 0 at $DIR/matches_reduce_branches.rs:8:5: 10:6
|
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
|
|
|
goto -> bb3; // scope 0 at $SRC_DIR/core/src/macros/mod.rs:LL:COL
|
|
|
|
}
|
|
|
|
|
|
|
|
bb3: {
|
2020-10-03 11:18:24 +02:00
|
|
|
return; // scope 0 at $DIR/matches_reduce_branches.rs:11:2: 11:2
|
2020-08-12 21:35:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|