mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
21 lines
397 B
Diff
21 lines
397 B
Diff
- // MIR for `get_union` before RemoveZsts
|
|
+ // MIR for `get_union` after RemoveZsts
|
|
|
|
fn get_union() -> Foo {
|
|
let mut _0: Foo;
|
|
let mut _1: ();
|
|
|
|
bb0: {
|
|
- StorageLive(_1);
|
|
- _1 = ();
|
|
- _0 = Foo { x: move _1 };
|
|
- StorageDead(_1);
|
|
+ nop;
|
|
+ nop;
|
|
+ _0 = Foo { x: const () };
|
|
+ nop;
|
|
return;
|
|
}
|
|
}
|
|
|