summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/inline/inline_cycle_generic.main.Inline.panic-abort.diff
blob: d437dbf5763a21dd4a4c822e9f9e4780821b6c85 (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 `main` before Inline
+ // MIR for `main` after Inline
  
  fn main() -> () {
      let mut _0: ();
      let _1: ();
+     scope 1 (inlined <C as Call>::call) {
+         scope 2 (inlined <B<A> as Call>::call) {
+             scope 3 (inlined <A as Call>::call) {
+             }
+         }
+     }
  
      bb0: {
          StorageLive(_1);
-         _1 = <C as Call>::call() -> [return: bb1, unwind unreachable];
+         _1 = <B<C> as Call>::call() -> [return: bb1, unwind unreachable];
      }
  
      bb1: {
          StorageDead(_1);
          _0 = const ();
          return;
      }
  }