]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/inline/inline_cycle_generic.main.Inline.diff
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / mir-opt / inline / inline_cycle_generic.main.Inline.diff
1 - // MIR for `main` before Inline
2 + // MIR for `main` after Inline
3   
4   fn main() -> () {
5       let mut _0: ();                      // return place in scope 0 at $DIR/inline_cycle_generic.rs:+0:11: +0:11
6       let _1: ();                          // in scope 0 at $DIR/inline_cycle_generic.rs:+1:5: +1:24
7 +     scope 1 (inlined <C as Call>::call) { // at $DIR/inline_cycle_generic.rs:9:5: 9:24
8 +         scope 2 (inlined <B<A> as Call>::call) { // at $DIR/inline_cycle_generic.rs:38:9: 38:31
9 +             scope 3 (inlined <A as Call>::call) { // at $DIR/inline_cycle_generic.rs:31:9: 31:28
10 +                 scope 4 (inlined <B<C> as Call>::call) { // at $DIR/inline_cycle_generic.rs:23:9: 23:31
11 +                 }
12 +             }
13 +         }
14 +     }
15   
16       bb0: {
17           StorageLive(_1);                 // scope 0 at $DIR/inline_cycle_generic.rs:+1:5: +1:24
18 -         _1 = <C as Call>::call() -> bb1; // scope 0 at $DIR/inline_cycle_generic.rs:+1:5: +1:24
19 +         _1 = <C as Call>::call() -> bb1; // scope 4 at $DIR/inline_cycle_generic.rs:31:9: 31:28
20                                            // mir::Constant
21 -                                          // + span: $DIR/inline_cycle_generic.rs:9:5: 9:22
22 +                                          // + span: $DIR/inline_cycle_generic.rs:31:9: 31:26
23                                            // + literal: Const { ty: fn() {<C as Call>::call}, val: Value(<ZST>) }
24       }
25   
26       bb1: {
27           StorageDead(_1);                 // scope 0 at $DIR/inline_cycle_generic.rs:+1:24: +1:25
28           _0 = const ();                   // scope 0 at $DIR/inline_cycle_generic.rs:+0:11: +2:2
29           return;                          // scope 0 at $DIR/inline_cycle_generic.rs:+2:2: +2:2
30       }
31   }
32