2022-12-03 16:00:05 -06:00
|
|
|
- // MIR for `get_union` before RemoveZsts
|
|
|
|
+ // MIR for `get_union` after RemoveZsts
|
|
|
|
|
|
|
|
fn get_union() -> Foo {
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _0: Foo;
|
|
|
|
let mut _1: ();
|
2022-12-03 16:00:05 -06:00
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
- StorageLive(_1);
|
|
|
|
- _1 = ();
|
|
|
|
- _0 = Foo { x: move _1 };
|
|
|
|
- StorageDead(_1);
|
|
|
|
+ nop;
|
|
|
|
+ nop;
|
|
|
|
+ _0 = Foo { x: const () };
|
|
|
|
+ nop;
|
|
|
|
return;
|
2022-12-03 16:00:05 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|