summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/inline/inline_cycle.two.Inline.panic-abort.diff
blob: 8a6eec3352a34a32d3c814651f0dcb8e0d356115 (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
27
28
29
30
- // MIR for `two` before Inline
+ // MIR for `two` after Inline
  
  fn two() -> () {
      let mut _0: ();
      let _1: ();
+     let mut _2: fn() {f};
+     scope 1 (inlined call::<fn() {f}>) {
+         debug f => _2;
+         let _3: ();
+     }
  
      bb0: {
          StorageLive(_1);
-         _1 = call::<fn() {f}>(f) -> [return: bb1, unwind unreachable];
+         StorageLive(_2);
+         _2 = f;
+         StorageLive(_3);
+         _3 = <fn() {f} as FnOnce<()>>::call_once(move _2, const ()) -> [return: bb1, unwind unreachable];
      }
  
      bb1: {
+         StorageDead(_3);
+         StorageDead(_2);
          StorageDead(_1);
          _0 = const ();
          return;
      }
  }