]>
Commit | Line | Data |
---|---|---|
ba9703b0 XL |
1 | // MIR for `foo` after Inline |
2 | ||
3 | fn foo(_1: T, _2: i32) -> (i32, T) { | |
4 | debug t => _1; // in scope 0 at $DIR/inline-closure-captures.rs:10:17: 10:18 | |
5 | debug q => _2; // in scope 0 at $DIR/inline-closure-captures.rs:10:23: 10:24 | |
6 | let mut _0: (i32, T); // return place in scope 0 at $DIR/inline-closure-captures.rs:10:34: 10:42 | |
1b1a35ee | 7 | let _3: [closure@foo<T>::{closure#0}]; // in scope 0 at $DIR/inline-closure-captures.rs:11:9: 11:10 |
ba9703b0 XL |
8 | let mut _4: &i32; // in scope 0 at $DIR/inline-closure-captures.rs:11:13: 11:24 |
9 | let mut _5: &T; // in scope 0 at $DIR/inline-closure-captures.rs:11:13: 11:24 | |
1b1a35ee | 10 | let mut _6: &[closure@foo<T>::{closure#0}]; // in scope 0 at $DIR/inline-closure-captures.rs:12:5: 12:6 |
ba9703b0 XL |
11 | let mut _7: (i32,); // in scope 0 at $DIR/inline-closure-captures.rs:12:5: 12:9 |
12 | let mut _8: i32; // in scope 0 at $DIR/inline-closure-captures.rs:12:7: 12:8 | |
29967ef6 | 13 | let mut _9: i32; // in scope 0 at $DIR/inline-closure-captures.rs:12:5: 12:9 |
ba9703b0 XL |
14 | scope 1 { |
15 | debug x => _3; // in scope 1 at $DIR/inline-closure-captures.rs:11:9: 11:10 | |
29967ef6 | 16 | scope 2 (inlined foo::<T>::{closure#0}) { // at $DIR/inline-closure-captures.rs:12:5: 12:9 |
5e7ed085 FG |
17 | debug _q => _9; // in scope 2 at $DIR/inline-closure-captures.rs:11:14: 11:16 |
18 | debug q => (*((*_6).0: &i32)); // in scope 2 at $DIR/inline-closure-captures.rs:10:23: 10:24 | |
19 | debug t => (*((*_6).1: &T)); // in scope 2 at $DIR/inline-closure-captures.rs:10:17: 10:18 | |
20 | let mut _10: i32; // in scope 2 at $DIR/inline-closure-captures.rs:11:19: 11:20 | |
21 | let mut _11: T; // in scope 2 at $DIR/inline-closure-captures.rs:11:22: 11:23 | |
04454e1e FG |
22 | let mut _12: &i32; // in scope 2 at $DIR/inline-closure-captures.rs:11:13: 11:24 |
23 | let mut _13: &T; // in scope 2 at $DIR/inline-closure-captures.rs:11:13: 11:24 | |
ba9703b0 XL |
24 | } |
25 | } | |
26 | ||
27 | bb0: { | |
f9f354fc XL |
28 | StorageLive(_3); // scope 0 at $DIR/inline-closure-captures.rs:11:9: 11:10 |
29 | StorageLive(_4); // scope 0 at $DIR/inline-closure-captures.rs:11:13: 11:24 | |
30 | _4 = &_2; // scope 0 at $DIR/inline-closure-captures.rs:11:13: 11:24 | |
31 | StorageLive(_5); // scope 0 at $DIR/inline-closure-captures.rs:11:13: 11:24 | |
32 | _5 = &_1; // scope 0 at $DIR/inline-closure-captures.rs:11:13: 11:24 | |
04454e1e | 33 | Deinit(_3); // scope 0 at $DIR/inline-closure-captures.rs:11:13: 11:24 |
3dfed10e XL |
34 | (_3.0: &i32) = move _4; // scope 0 at $DIR/inline-closure-captures.rs:11:13: 11:24 |
35 | (_3.1: &T) = move _5; // scope 0 at $DIR/inline-closure-captures.rs:11:13: 11:24 | |
f9f354fc XL |
36 | StorageDead(_5); // scope 0 at $DIR/inline-closure-captures.rs:11:23: 11:24 |
37 | StorageDead(_4); // scope 0 at $DIR/inline-closure-captures.rs:11:23: 11:24 | |
38 | StorageLive(_6); // scope 1 at $DIR/inline-closure-captures.rs:12:5: 12:6 | |
39 | _6 = &_3; // scope 1 at $DIR/inline-closure-captures.rs:12:5: 12:6 | |
40 | StorageLive(_7); // scope 1 at $DIR/inline-closure-captures.rs:12:5: 12:9 | |
41 | StorageLive(_8); // scope 1 at $DIR/inline-closure-captures.rs:12:7: 12:8 | |
42 | _8 = _2; // scope 1 at $DIR/inline-closure-captures.rs:12:7: 12:8 | |
04454e1e | 43 | Deinit(_7); // scope 1 at $DIR/inline-closure-captures.rs:12:5: 12:9 |
3dfed10e | 44 | (_7.0: i32) = move _8; // scope 1 at $DIR/inline-closure-captures.rs:12:5: 12:9 |
29967ef6 XL |
45 | StorageLive(_9); // scope 1 at $DIR/inline-closure-captures.rs:12:5: 12:9 |
46 | _9 = move (_7.0: i32); // scope 1 at $DIR/inline-closure-captures.rs:12:5: 12:9 | |
5e7ed085 | 47 | StorageLive(_10); // scope 2 at $DIR/inline-closure-captures.rs:11:19: 11:20 |
04454e1e FG |
48 | StorageLive(_12); // scope 2 at $DIR/inline-closure-captures.rs:11:19: 11:20 |
49 | _12 = move ((*_6).0: &i32); // scope 2 at $DIR/inline-closure-captures.rs:11:19: 11:20 | |
50 | _10 = (*_12); // scope 2 at $DIR/inline-closure-captures.rs:11:19: 11:20 | |
51 | StorageDead(_12); // scope 2 at $DIR/inline-closure-captures.rs:11:22: 11:23 | |
5e7ed085 | 52 | StorageLive(_11); // scope 2 at $DIR/inline-closure-captures.rs:11:22: 11:23 |
04454e1e FG |
53 | StorageLive(_13); // scope 2 at $DIR/inline-closure-captures.rs:11:22: 11:23 |
54 | _13 = move ((*_6).1: &T); // scope 2 at $DIR/inline-closure-captures.rs:11:22: 11:23 | |
55 | _11 = (*_13); // scope 2 at $DIR/inline-closure-captures.rs:11:22: 11:23 | |
56 | StorageDead(_13); // scope 2 at $DIR/inline-closure-captures.rs:11:18: 11:24 | |
57 | Deinit(_0); // scope 2 at $DIR/inline-closure-captures.rs:11:18: 11:24 | |
5e7ed085 FG |
58 | (_0.0: i32) = move _10; // scope 2 at $DIR/inline-closure-captures.rs:11:18: 11:24 |
59 | (_0.1: T) = move _11; // scope 2 at $DIR/inline-closure-captures.rs:11:18: 11:24 | |
60 | StorageDead(_11); // scope 2 at $DIR/inline-closure-captures.rs:11:23: 11:24 | |
61 | StorageDead(_10); // scope 2 at $DIR/inline-closure-captures.rs:11:23: 11:24 | |
29967ef6 | 62 | StorageDead(_9); // scope 1 at $DIR/inline-closure-captures.rs:12:5: 12:9 |
f9f354fc XL |
63 | StorageDead(_8); // scope 1 at $DIR/inline-closure-captures.rs:12:8: 12:9 |
64 | StorageDead(_7); // scope 1 at $DIR/inline-closure-captures.rs:12:8: 12:9 | |
65 | StorageDead(_6); // scope 1 at $DIR/inline-closure-captures.rs:12:8: 12:9 | |
66 | StorageDead(_3); // scope 0 at $DIR/inline-closure-captures.rs:13:1: 13:2 | |
67 | return; // scope 0 at $DIR/inline-closure-captures.rs:13:2: 13:2 | |
ba9703b0 | 68 | } |
923072b8 FG |
69 | |
70 | bb1 (cleanup): { | |
71 | resume; // scope 0 at $DIR/inline-closure-captures.rs:10:1: 13:2 | |
72 | } | |
ba9703b0 | 73 | } |