2024-03-08 06:56:09 -06:00
|
|
|
- // MIR for `otherwise_t4_unreachable_default_2` before UnreachableEnumBranching
|
|
|
|
+ // MIR for `otherwise_t4_unreachable_default_2` after UnreachableEnumBranching
|
2024-02-13 22:02:22 -06:00
|
|
|
|
2024-03-08 06:56:09 -06:00
|
|
|
fn otherwise_t4_unreachable_default_2() -> () {
|
2024-02-13 22:02:22 -06:00
|
|
|
let mut _0: ();
|
|
|
|
let _1: &str;
|
|
|
|
let mut _2: Test4;
|
|
|
|
let mut _3: isize;
|
|
|
|
let _4: &str;
|
|
|
|
let _5: &str;
|
|
|
|
let _6: &str;
|
|
|
|
let _7: &str;
|
|
|
|
|
|
|
|
bb0: {
|
|
|
|
StorageLive(_1);
|
|
|
|
StorageLive(_2);
|
|
|
|
_2 = Test4::C;
|
|
|
|
_3 = discriminant(_2);
|
2024-06-23 08:54:42 -05:00
|
|
|
- switchInt(move _3) -> [0: bb2, 1: bb4, 2: bb3, otherwise: bb1];
|
|
|
|
+ switchInt(move _3) -> [0: bb2, 1: bb4, 2: bb3, 3: bb1, otherwise: bb8];
|
2024-02-13 22:02:22 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
|
|
|
StorageLive(_7);
|
|
|
|
_7 = const "A(other)D";
|
|
|
|
_1 = &(*_7);
|
|
|
|
StorageDead(_7);
|
|
|
|
goto -> bb7;
|
|
|
|
}
|
|
|
|
|
2024-02-13 22:09:28 -06:00
|
|
|
bb2: {
|
2024-06-23 08:54:42 -05:00
|
|
|
switchInt(copy ((_2 as A).0: i32)) -> [1: bb6, 2: bb5, otherwise: bb1];
|
2024-02-13 22:09:28 -06:00
|
|
|
}
|
|
|
|
|
2024-02-13 22:02:22 -06:00
|
|
|
bb3: {
|
2024-06-23 08:54:42 -05:00
|
|
|
StorageLive(_6);
|
|
|
|
_6 = const "C";
|
|
|
|
_1 = &(*_6);
|
|
|
|
StorageDead(_6);
|
2024-02-13 22:02:22 -06:00
|
|
|
goto -> bb7;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb4: {
|
|
|
|
StorageLive(_5);
|
|
|
|
_5 = const "B(i32)";
|
|
|
|
_1 = &(*_5);
|
|
|
|
StorageDead(_5);
|
|
|
|
goto -> bb7;
|
|
|
|
}
|
|
|
|
|
2024-06-23 08:54:42 -05:00
|
|
|
bb5: {
|
|
|
|
StorageLive(_4);
|
|
|
|
_4 = const "A(2)";
|
|
|
|
_1 = &(*_4);
|
|
|
|
StorageDead(_4);
|
|
|
|
goto -> bb7;
|
|
|
|
}
|
|
|
|
|
2024-02-13 22:02:22 -06:00
|
|
|
bb6: {
|
2024-06-23 08:54:42 -05:00
|
|
|
_1 = const "A(1)";
|
2024-02-13 22:02:22 -06:00
|
|
|
goto -> bb7;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb7: {
|
|
|
|
StorageDead(_2);
|
|
|
|
StorageDead(_1);
|
|
|
|
_0 = const ();
|
|
|
|
return;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ bb8: {
|
|
|
|
+ unreachable;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|