File: inline_closure.foo.Inline.after.mir

package info (click to toggle)
rustc-web 1.78.0%2Bdfsg1-2~deb11u3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,245,360 kB
  • sloc: xml: 147,985; javascript: 18,022; sh: 11,083; python: 10,265; ansic: 6,172; cpp: 5,023; asm: 4,390; makefile: 4,269
file content (47 lines) | stat: -rw-r--r-- 1,081 bytes parent folder | download
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// MIR for `foo` after Inline

fn foo(_1: T, _2: i32) -> i32 {
    debug _t => _1;
    debug q => _2;
    let mut _0: i32;
    let _3: {closure@foo<T>::{closure#0}};
    let mut _4: &{closure@foo<T>::{closure#0}};
    let mut _5: (i32, i32);
    let mut _6: i32;
    let mut _7: i32;
    let mut _8: i32;
    let mut _9: i32;
    scope 1 {
        debug x => _3;
        scope 2 (inlined foo::<T>::{closure#0}) {
            debug _t => _8;
            debug _q => _9;
        }
    }

    bb0: {
        StorageLive(_3);
        _3 = {closure@foo::<T>::{closure#0}};
        StorageLive(_4);
        _4 = &_3;
        StorageLive(_5);
        StorageLive(_6);
        _6 = _2;
        StorageLive(_7);
        _7 = _2;
        _5 = (move _6, move _7);
        StorageLive(_8);
        _8 = move (_5.0: i32);
        StorageLive(_9);
        _9 = move (_5.1: i32);
        _0 = _8;
        StorageDead(_9);
        StorageDead(_8);
        StorageDead(_7);
        StorageDead(_6);
        StorageDead(_5);
        StorageDead(_4);
        StorageDead(_3);
        return;
    }
}