2022-12-03 16:00:05 -06:00
|
|
|
- // MIR for `get_union` before RemoveZsts
|
|
|
|
+ // MIR for `get_union` after RemoveZsts
|
|
|
|
|
|
|
|
fn get_union() -> Foo {
|
|
|
|
let mut _0: Foo; // return place in scope 0 at $DIR/remove_zsts.rs:+0:19: +0:22
|
|
|
|
let mut _1: (); // in scope 0 at $DIR/remove_zsts.rs:+1:14: +1:16
|
|
|
|
|
|
|
|
bb0: {
|
2023-01-25 10:55:30 -06:00
|
|
|
- StorageLive(_1); // scope 0 at $DIR/remove_zsts.rs:+1:14: +1:16
|
2023-01-25 12:34:35 -06:00
|
|
|
- _1 = (); // scope 0 at $DIR/remove_zsts.rs:+1:14: +1:16
|
2023-01-23 16:17:36 -06:00
|
|
|
- _0 = Foo { x: move _1 }; // scope 0 at $DIR/remove_zsts.rs:+1:5: +1:18
|
2023-01-25 10:55:30 -06:00
|
|
|
- StorageDead(_1); // scope 0 at $DIR/remove_zsts.rs:+1:17: +1:18
|
|
|
|
+ nop; // scope 0 at $DIR/remove_zsts.rs:+1:14: +1:16
|
2022-12-03 16:00:05 -06:00
|
|
|
+ nop; // scope 0 at $DIR/remove_zsts.rs:+1:14: +1:16
|
2023-01-23 16:17:36 -06:00
|
|
|
+ _0 = Foo { x: const () }; // scope 0 at $DIR/remove_zsts.rs:+1:5: +1:18
|
2023-01-25 10:55:30 -06:00
|
|
|
+ nop; // scope 0 at $DIR/remove_zsts.rs:+1:17: +1:18
|
2022-12-03 16:00:05 -06:00
|
|
|
return; // scope 0 at $DIR/remove_zsts.rs:+2:2: +2:2
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|