]> git.proxmox.com Git - rustc.git/blob - src/test/mir-opt/inline/inline_cycle.two.Inline.diff
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / mir-opt / inline / inline_cycle.two.Inline.diff
1 - // MIR for `two` before Inline
2 + // MIR for `two` after Inline
3
4 fn two() -> () {
5 let mut _0: (); // return place in scope 0 at $DIR/inline-cycle.rs:+0:10: +0:10
6 let _1: (); // in scope 0 at $DIR/inline-cycle.rs:+1:5: +1:12
7 + let mut _2: fn() {f}; // in scope 0 at $DIR/inline-cycle.rs:+1:5: +1:12
8 + scope 1 (inlined call::<fn() {f}>) { // at $DIR/inline-cycle.rs:49:5: 49:12
9 + debug f => _2; // in scope 1 at $DIR/inline-cycle.rs:53:22: 53:23
10 + let _3: (); // in scope 1 at $DIR/inline-cycle.rs:54:5: 54:8
11 + let mut _4: fn() {f}; // in scope 1 at $DIR/inline-cycle.rs:54:5: 54:6
12 + let mut _5: (); // in scope 1 at $DIR/inline-cycle.rs:54:5: 54:8
13 + scope 2 (inlined <fn() {f} as FnOnce<()>>::call_once - shim(fn() {f})) { // at $DIR/inline-cycle.rs:54:5: 54:8
14 + scope 3 (inlined f) { // at $SRC_DIR/core/src/ops/function.rs:LL:COL
15 + let _6: (); // in scope 3 at $DIR/inline-cycle.rs:59:5: 59:12
16 + }
17 + }
18 + }
19
20 bb0: {
21 StorageLive(_1); // scope 0 at $DIR/inline-cycle.rs:+1:5: +1:12
22 - _1 = call::<fn() {f}>(f) -> bb1; // scope 0 at $DIR/inline-cycle.rs:+1:5: +1:12
23 + StorageLive(_2); // scope 0 at $DIR/inline-cycle.rs:+1:5: +1:12
24 + _2 = f; // scope 0 at $DIR/inline-cycle.rs:+1:5: +1:12
25 // mir::Constant
26 - // + span: $DIR/inline-cycle.rs:49:5: 49:9
27 + // + span: $DIR/inline-cycle.rs:49:10: 49:11
28 + // + literal: Const { ty: fn() {f}, val: Value(<ZST>) }
29 + StorageLive(_3); // scope 1 at $DIR/inline-cycle.rs:54:5: 54:8
30 + StorageLive(_4); // scope 1 at $DIR/inline-cycle.rs:54:5: 54:6
31 + _4 = move _2; // scope 1 at $DIR/inline-cycle.rs:54:5: 54:6
32 + StorageLive(_5); // scope 1 at $DIR/inline-cycle.rs:54:5: 54:8
33 + StorageLive(_6); // scope 3 at $DIR/inline-cycle.rs:59:5: 59:12
34 + _6 = call::<fn() {f}>(f) -> bb1; // scope 3 at $DIR/inline-cycle.rs:59:5: 59:12
35 + // mir::Constant
36 + // + span: $DIR/inline-cycle.rs:59:5: 59:9
37 // + literal: Const { ty: fn(fn() {f}) {call::<fn() {f}>}, val: Value(<ZST>) }
38 // mir::Constant
39 - // + span: $DIR/inline-cycle.rs:49:10: 49:11
40 + // + span: $DIR/inline-cycle.rs:59:10: 59:11
41 // + literal: Const { ty: fn() {f}, val: Value(<ZST>) }
42 }
43
44 bb1: {
45 + StorageDead(_6); // scope 3 at $DIR/inline-cycle.rs:59:12: 59:13
46 + StorageDead(_5); // scope 1 at $DIR/inline-cycle.rs:54:7: 54:8
47 + StorageDead(_4); // scope 1 at $DIR/inline-cycle.rs:54:7: 54:8
48 + StorageDead(_3); // scope 1 at $DIR/inline-cycle.rs:54:8: 54:9
49 + StorageDead(_2); // scope 0 at $DIR/inline-cycle.rs:+1:5: +1:12
50 StorageDead(_1); // scope 0 at $DIR/inline-cycle.rs:+1:12: +1:13
51 _0 = const (); // scope 0 at $DIR/inline-cycle.rs:+0:10: +2:2
52 return; // scope 0 at $DIR/inline-cycle.rs:+2:2: +2:2
53 }
54 }
55