]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/remove_zsts.get_union.RemoveZsts.diff
Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk
[rust.git] / tests / mir-opt / remove_zsts.get_union.RemoveZsts.diff
1 - // MIR for `get_union` before RemoveZsts
2 + // MIR for `get_union` after RemoveZsts
3   
4   fn get_union() -> Foo {
5       let mut _0: Foo;                     // return place in scope 0 at $DIR/remove_zsts.rs:+0:19: +0:22
6       let mut _1: ();                      // in scope 0 at $DIR/remove_zsts.rs:+1:14: +1:16
7   
8       bb0: {
9           StorageLive(_1);                 // scope 0 at $DIR/remove_zsts.rs:+1:14: +1:16
10 -         _1 = ();                         // scope 0 at $DIR/remove_zsts.rs:+1:14: +1:16
11 +         nop;                             // scope 0 at $DIR/remove_zsts.rs:+1:14: +1:16
12           _0 = Foo { x: move _1 };         // scope 0 at $DIR/remove_zsts.rs:+1:5: +1:18
13           StorageDead(_1);                 // scope 0 at $DIR/remove_zsts.rs:+1:17: +1:18
14           return;                          // scope 0 at $DIR/remove_zsts.rs:+2:2: +2:2
15       }
16   }
17