2020-08-13 19:11:36 -05:00
|
|
|
- // MIR for `exhaustive_match` before MatchBranchSimplification
|
|
|
|
+ // MIR for `exhaustive_match` after MatchBranchSimplification
|
|
|
|
|
|
|
|
fn exhaustive_match(_1: E) -> u8 {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug e => _1;
|
|
|
|
let mut _0: u8;
|
|
|
|
let mut _2: isize;
|
2020-08-13 19:11:36 -05:00
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
_2 = discriminant(_1);
|
|
|
|
switchInt(move _2) -> [0: bb3, 1: bb1, otherwise: bb2];
|
2020-08-13 19:11:36 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-06-06 08:47:00 -05:00
|
|
|
_0 = const 1_u8;
|
|
|
|
goto -> bb4;
|
2020-08-13 19:11:36 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2023-06-06 08:47:00 -05:00
|
|
|
unreachable;
|
2020-08-13 19:11:36 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb3: {
|
2023-06-06 08:47:00 -05:00
|
|
|
_0 = const 0_u8;
|
|
|
|
goto -> bb4;
|
2022-07-26 08:17:02 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb4: {
|
2023-06-06 08:47:00 -05:00
|
|
|
return;
|
2020-08-13 19:11:36 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|