diff options
Diffstat (limited to 'src/test/mir-opt/remove_zsts_dont_touch_unions.get_union.RemoveZsts.after.mir')
-rw-r--r-- | src/test/mir-opt/remove_zsts_dont_touch_unions.get_union.RemoveZsts.after.mir | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/mir-opt/remove_zsts_dont_touch_unions.get_union.RemoveZsts.after.mir b/src/test/mir-opt/remove_zsts_dont_touch_unions.get_union.RemoveZsts.after.mir new file mode 100644 index 000000000..7d9e60462 --- /dev/null +++ b/src/test/mir-opt/remove_zsts_dont_touch_unions.get_union.RemoveZsts.after.mir @@ -0,0 +1,15 @@ +// MIR for `get_union` after RemoveZsts + +fn get_union() -> Foo { + let mut _0: Foo; // return place in scope 0 at $DIR/remove_zsts_dont_touch_unions.rs:+0:19: +0:22 + let mut _1: (); // in scope 0 at $DIR/remove_zsts_dont_touch_unions.rs:+1:14: +1:16 + + bb0: { + StorageLive(_1); // scope 0 at $DIR/remove_zsts_dont_touch_unions.rs:+1:14: +1:16 + nop; // scope 0 at $DIR/remove_zsts_dont_touch_unions.rs:+1:14: +1:16 + Deinit(_0); // scope 0 at $DIR/remove_zsts_dont_touch_unions.rs:+1:5: +1:18 + (_0.0: ()) = move _1; // scope 0 at $DIR/remove_zsts_dont_touch_unions.rs:+1:5: +1:18 + StorageDead(_1); // scope 0 at $DIR/remove_zsts_dont_touch_unions.rs:+1:17: +1:18 + return; // scope 0 at $DIR/remove_zsts_dont_touch_unions.rs:+2:2: +2:2 + } +} |