2022-12-04 02:20:10 -06:00
|
|
|
// MIR for `switch_option` after built
|
|
|
|
|
|
|
|
fn switch_option(_1: Option<()>) -> bool {
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _0: bool;
|
|
|
|
let mut _2: isize;
|
2022-12-04 02:20:10 -06:00
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
_2 = discriminant(_1);
|
|
|
|
switchInt(copy _2) -> [0: bb1, 1: bb2, otherwise: bb2];
|
2022-12-04 02:20:10 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-06-06 08:47:00 -05:00
|
|
|
_0 = const false;
|
|
|
|
return;
|
2022-12-04 02:20:10 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2023-06-06 08:47:00 -05:00
|
|
|
_0 = const true;
|
|
|
|
return;
|
2022-12-04 02:20:10 -06:00
|
|
|
}
|
|
|
|
}
|