2024-06-27 04:24:05 -05:00
|
|
|
// MIR for `match_enum` after built
|
|
|
|
|
|
|
|
fn match_enum(_1: E1) -> bool {
|
|
|
|
debug x => _1;
|
|
|
|
let mut _0: bool;
|
|
|
|
let mut _2: isize;
|
|
|
|
|
|
|
|
bb0: {
|
|
|
|
PlaceMention(_1);
|
|
|
|
_2 = discriminant(_1);
|
2024-06-30 06:21:12 -05:00
|
|
|
switchInt(move _2) -> [0: bb2, 1: bb4, 2: bb6, otherwise: bb1];
|
2024-06-27 04:24:05 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
|
|
|
FakeRead(ForMatchedPlace(None), _1);
|
|
|
|
unreachable;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2024-06-30 06:21:12 -05:00
|
|
|
goto -> bb8;
|
2024-06-27 04:24:05 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb3: {
|
2024-06-30 06:21:12 -05:00
|
|
|
goto -> bb1;
|
2024-06-27 04:24:05 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb4: {
|
2024-06-30 06:21:12 -05:00
|
|
|
goto -> bb8;
|
2024-06-27 04:24:05 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb5: {
|
2024-06-30 06:21:12 -05:00
|
|
|
goto -> bb1;
|
2024-06-27 04:24:05 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb6: {
|
2024-06-30 06:21:12 -05:00
|
|
|
_0 = const false;
|
2024-06-30 05:29:46 -05:00
|
|
|
goto -> bb10;
|
2024-06-27 04:24:05 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb7: {
|
2024-06-30 06:21:12 -05:00
|
|
|
goto -> bb1;
|
2024-06-27 04:24:05 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb8: {
|
2024-06-30 06:21:12 -05:00
|
|
|
falseEdge -> [real: bb9, imaginary: bb6];
|
2024-06-27 04:24:05 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb9: {
|
2024-06-30 05:29:46 -05:00
|
|
|
_0 = const true;
|
2024-06-30 06:21:12 -05:00
|
|
|
goto -> bb10;
|
2024-06-30 05:29:46 -05:00
|
|
|
}
|
|
|
|
|
2024-06-30 06:21:12 -05:00
|
|
|
bb10: {
|
2024-06-27 04:24:05 -05:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|