summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/lower_intrinsics.forget.LowerIntrinsics.panic-abort.diff
blob: 7d300e6c66b3c5ee246be88012eceb7a002cc80c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
- // MIR for `forget` before LowerIntrinsics
+ // MIR for `forget` after LowerIntrinsics
  
  fn forget(_1: T) -> () {
      debug t => _1;
      let mut _0: ();
      let mut _2: T;
  
      bb0: {
          StorageLive(_2);
          _2 = move _1;
-         _0 = std::intrinsics::forget::<T>(move _2) -> [return: bb1, unwind unreachable];
+         _0 = const ();
+         goto -> bb1;
      }
  
      bb1: {
          StorageDead(_2);
          goto -> bb2;
      }
  
      bb2: {
          return;
      }
  }