2023-02-22 18:00:00 -06:00
|
|
|
- // MIR for `main` before ElaborateDrops
|
|
|
|
+ // MIR for `main` after ElaborateDrops
|
|
|
|
|
|
|
|
fn main() -> () {
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _0: ();
|
|
|
|
let _1: ();
|
|
|
|
let mut _2: S;
|
|
|
|
let mut _3: S;
|
|
|
|
let mut _4: S;
|
|
|
|
+ let mut _5: bool;
|
2023-02-22 18:00:00 -06:00
|
|
|
scope 1 {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug x => _1;
|
2023-02-22 18:00:00 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
+ _5 = const false;
|
|
|
|
StorageLive(_1);
|
|
|
|
StorageLive(_2);
|
|
|
|
+ _5 = const true;
|
|
|
|
_2 = S;
|
|
|
|
StorageLive(_3);
|
|
|
|
StorageLive(_4);
|
|
|
|
_4 = S;
|
|
|
|
_3 = S::id(move _4) -> [return: bb1, unwind: bb4];
|
2023-02-22 18:00:00 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageDead(_4);
|
|
|
|
+ _5 = const false;
|
|
|
|
_1 = S::other(move _2, move _3) -> [return: bb2, unwind: bb3];
|
2023-02-22 18:00:00 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageDead(_3);
|
|
|
|
+ _5 = const false;
|
|
|
|
StorageDead(_2);
|
|
|
|
_0 = const ();
|
|
|
|
StorageDead(_1);
|
|
|
|
return;
|
2023-02-22 18:00:00 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb3 (cleanup): {
|
2023-06-06 08:47:00 -05:00
|
|
|
- drop(_3) -> [return: bb5, unwind terminate];
|
|
|
|
+ goto -> bb5;
|
2023-02-22 18:00:00 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb4 (cleanup): {
|
2023-06-06 08:47:00 -05:00
|
|
|
- drop(_4) -> [return: bb5, unwind terminate];
|
|
|
|
+ goto -> bb5;
|
2023-02-22 18:00:00 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb5 (cleanup): {
|
2023-06-06 08:47:00 -05:00
|
|
|
- drop(_2) -> [return: bb6, unwind terminate];
|
|
|
|
+ goto -> bb8;
|
2023-02-22 18:00:00 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb6 (cleanup): {
|
2023-06-06 08:47:00 -05:00
|
|
|
resume;
|
2023-02-22 18:00:00 -06:00
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ bb7 (cleanup): {
|
2023-06-06 08:47:00 -05:00
|
|
|
+ drop(_2) -> [return: bb6, unwind terminate];
|
2023-02-22 18:00:00 -06:00
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ bb8 (cleanup): {
|
2023-06-06 08:47:00 -05:00
|
|
|
+ switchInt(_5) -> [0: bb6, otherwise: bb7];
|
2023-02-22 18:00:00 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|