summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/remove_zsts.get_union.RemoveZsts.diff
blob: 169b7b1054b474a588ad675e8bbbff6bc818d2cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
- // 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: {
          StorageLive(_1);                 // scope 0 at $DIR/remove_zsts.rs:+1:14: +1:16
-         Deinit(_1);                      // scope 0 at $DIR/remove_zsts.rs:+1:14: +1:16
+         nop;                             // scope 0 at $DIR/remove_zsts.rs:+1:14: +1:16
          Deinit(_0);                      // scope 0 at $DIR/remove_zsts.rs:+1:5: +1:18
-         (_0.0: ()) = move _1;            // scope 0 at $DIR/remove_zsts.rs:+1:5: +1:18
+         nop;                             // scope 0 at $DIR/remove_zsts.rs:+1:5: +1:18
          StorageDead(_1);                 // scope 0 at $DIR/remove_zsts.rs:+1:17: +1:18
          return;                          // scope 0 at $DIR/remove_zsts.rs:+2:2: +2:2
      }
  }