2024-03-08 06:56:09 -06:00
|
|
|
- // MIR for `otherwise_t5_unreachable_default` before UnreachableEnumBranching
|
|
|
|
+ // MIR for `otherwise_t5_unreachable_default` after UnreachableEnumBranching
|
2024-02-13 22:02:22 -06:00
|
|
|
|
2024-03-08 06:56:09 -06:00
|
|
|
fn otherwise_t5_unreachable_default() -> () {
|
2024-02-13 22:02:22 -06:00
|
|
|
let mut _0: ();
|
|
|
|
let _1: &str;
|
|
|
|
let mut _2: Test5<T>;
|
2024-02-13 22:09:28 -06:00
|
|
|
let mut _3: i8;
|
2024-02-13 22:02:22 -06:00
|
|
|
let _4: &str;
|
|
|
|
let _5: &str;
|
|
|
|
let _6: &str;
|
|
|
|
|
|
|
|
bb0: {
|
|
|
|
StorageLive(_1);
|
|
|
|
StorageLive(_2);
|
|
|
|
_2 = Test5::<T>::C;
|
|
|
|
_3 = discriminant(_2);
|
2024-02-13 22:09:28 -06:00
|
|
|
- switchInt(move _3) -> [255: bb2, 0: bb3, 5: bb4, otherwise: bb1];
|
|
|
|
+ switchInt(move _3) -> [255: bb2, 0: bb3, 5: bb4, 3: bb1, otherwise: bb7];
|
2024-02-13 22:02:22 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
|
|
|
StorageLive(_6);
|
|
|
|
_6 = const "D";
|
|
|
|
_1 = &(*_6);
|
|
|
|
StorageDead(_6);
|
|
|
|
goto -> bb5;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
|
|
|
_1 = const "A(T)";
|
|
|
|
goto -> bb5;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb3: {
|
|
|
|
StorageLive(_4);
|
|
|
|
_4 = const "B(T)";
|
|
|
|
_1 = &(*_4);
|
|
|
|
StorageDead(_4);
|
|
|
|
goto -> bb5;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb4: {
|
|
|
|
StorageLive(_5);
|
|
|
|
_5 = const "C";
|
|
|
|
_1 = &(*_5);
|
|
|
|
StorageDead(_5);
|
|
|
|
goto -> bb5;
|
|
|
|
}
|
|
|
|
|
|
|
|
bb5: {
|
|
|
|
drop(_2) -> [return: bb6, unwind unreachable];
|
|
|
|
}
|
|
|
|
|
|
|
|
bb6: {
|
|
|
|
StorageDead(_2);
|
|
|
|
StorageDead(_1);
|
|
|
|
_0 = const ();
|
|
|
|
return;
|
2024-02-13 22:09:28 -06:00
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ bb7: {
|
|
|
|
+ unreachable;
|
2024-02-13 22:02:22 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|