|
7 | 7 | let mut _2: std::pin::Pin<&mut [generator@$DIR/inline_generator.rs:15:5: 15:8]>; // in scope 0 at $DIR/inline_generator.rs:+1:14: +1:32
|
8 | 8 | let mut _3: &mut [generator@$DIR/inline_generator.rs:15:5: 15:8]; // in scope 0 at $DIR/inline_generator.rs:+1:23: +1:31
|
9 | 9 | let mut _4: [generator@$DIR/inline_generator.rs:15:5: 15:8]; // in scope 0 at $DIR/inline_generator.rs:+1:28: +1:31
|
10 |
| -+ let mut _7: bool; // in scope 0 at $DIR/inline_generator.rs:+1:33: +1:46 |
| 10 | ++ let mut _5: bool; // in scope 0 at $DIR/inline_generator.rs:+1:33: +1:46 |
11 | 11 | scope 1 {
|
12 | 12 | debug _r => _1; // in scope 1 at $DIR/inline_generator.rs:+1:9: +1:11
|
13 | 13 | }
|
14 | 14 | + scope 2 (inlined g) { // at $DIR/inline_generator.rs:9:28: 9:31
|
15 | 15 | + }
|
16 | 16 | + scope 3 (inlined Pin::<&mut [generator@$DIR/inline_generator.rs:15:5: 15:8]>::new) { // at $DIR/inline_generator.rs:9:14: 9:32
|
17 | 17 | + debug pointer => _3; // in scope 3 at $SRC_DIR/core/src/pin.rs:LL:COL
|
18 |
| -+ let mut _5: &mut [generator@$DIR/inline_generator.rs:15:5: 15:8]; // in scope 3 at $SRC_DIR/core/src/pin.rs:LL:COL |
19 | 18 | + scope 4 {
|
20 | 19 | + scope 5 (inlined Pin::<&mut [generator@$DIR/inline_generator.rs:15:5: 15:8]>::new_unchecked) { // at $SRC_DIR/core/src/pin.rs:LL:COL
|
21 |
| -+ debug pointer => _5; // in scope 5 at $SRC_DIR/core/src/pin.rs:LL:COL |
22 |
| -+ let mut _6: &mut [generator@$DIR/inline_generator.rs:15:5: 15:8]; // in scope 5 at $SRC_DIR/core/src/pin.rs:LL:COL |
| 20 | ++ debug pointer => _3; // in scope 5 at $SRC_DIR/core/src/pin.rs:LL:COL |
23 | 21 | + }
|
24 | 22 | + }
|
25 | 23 | + }
|
26 | 24 | + scope 6 (inlined g::{closure#0}) { // at $DIR/inline_generator.rs:9:33: 9:46
|
27 |
| -+ debug a => _7; // in scope 6 at $DIR/inline_generator.rs:15:6: 15:7 |
28 |
| -+ let mut _8: i32; // in scope 6 at $DIR/inline_generator.rs:15:17: 15:39 |
29 |
| -+ let mut _9: u32; // in scope 6 at $DIR/inline_generator.rs:15:5: 15:41 |
| 25 | ++ debug a => _5; // in scope 6 at $DIR/inline_generator.rs:15:6: 15:7 |
| 26 | ++ let mut _6: i32; // in scope 6 at $DIR/inline_generator.rs:15:17: 15:39 |
| 27 | ++ let mut _7: u32; // in scope 6 at $DIR/inline_generator.rs:15:5: 15:41 |
| 28 | ++ let mut _8: &mut [generator@$DIR/inline_generator.rs:15:5: 15:8]; // in scope 6 at $DIR/inline_generator.rs:15:5: 15:41 |
| 29 | ++ let mut _9: &mut [generator@$DIR/inline_generator.rs:15:5: 15:8]; // in scope 6 at $DIR/inline_generator.rs:15:5: 15:41 |
30 | 30 | + let mut _10: &mut [generator@$DIR/inline_generator.rs:15:5: 15:8]; // in scope 6 at $DIR/inline_generator.rs:15:5: 15:41
|
31 |
| -+ let mut _11: &mut [generator@$DIR/inline_generator.rs:15:5: 15:8]; // in scope 6 at $DIR/inline_generator.rs:15:5: 15:41 |
32 |
| -+ let mut _12: &mut [generator@$DIR/inline_generator.rs:15:5: 15:8]; // in scope 6 at $DIR/inline_generator.rs:15:5: 15:41 |
33 | 31 | + }
|
34 | 32 |
|
35 | 33 | bb0: {
|
|
64 | 62 | - }
|
65 | 63 | -
|
66 | 64 | - bb2: {
|
67 |
| -+ StorageLive(_5); // scope 4 at $SRC_DIR/core/src/pin.rs:LL:COL |
68 |
| -+ _5 = move _3; // scope 4 at $SRC_DIR/core/src/pin.rs:LL:COL |
69 |
| -+ StorageLive(_6); // scope 5 at $SRC_DIR/core/src/pin.rs:LL:COL |
70 |
| -+ _6 = move _5; // scope 5 at $SRC_DIR/core/src/pin.rs:LL:COL |
71 |
| -+ _2 = Pin::<&mut [generator@$DIR/inline_generator.rs:15:5: 15:8]> { pointer: move _6 }; // scope 5 at $SRC_DIR/core/src/pin.rs:LL:COL |
72 |
| -+ StorageDead(_6); // scope 5 at $SRC_DIR/core/src/pin.rs:LL:COL |
73 |
| -+ StorageDead(_5); // scope 4 at $SRC_DIR/core/src/pin.rs:LL:COL |
| 65 | ++ _2 = Pin::<&mut [generator@$DIR/inline_generator.rs:15:5: 15:8]> { pointer: move _3 }; // scope 5 at $SRC_DIR/core/src/pin.rs:LL:COL |
74 | 66 | StorageDead(_3); // scope 0 at $DIR/inline_generator.rs:+1:31: +1:32
|
75 | 67 | - _1 = <[generator@$DIR/inline_generator.rs:15:5: 15:8] as Generator<bool>>::resume(move _2, const false) -> [return: bb3, unwind: bb4]; // scope 0 at $DIR/inline_generator.rs:+1:14: +1:46
|
76 | 68 | - // mir::Constant
|
77 | 69 | - // + span: $DIR/inline_generator.rs:9:33: 9:39
|
78 | 70 | - // + literal: Const { ty: for<'a> fn(Pin<&'a mut [generator@$DIR/inline_generator.rs:15:5: 15:8]>, bool) -> GeneratorState<<[generator@$DIR/inline_generator.rs:15:5: 15:8] as Generator<bool>>::Yield, <[generator@$DIR/inline_generator.rs:15:5: 15:8] as Generator<bool>>::Return> {<[generator@$DIR/inline_generator.rs:15:5: 15:8] as Generator<bool>>::resume}, val: Value(<ZST>) }
|
79 |
| -+ StorageLive(_7); // scope 0 at $DIR/inline_generator.rs:+1:33: +1:46 |
80 |
| -+ _7 = const false; // scope 0 at $DIR/inline_generator.rs:+1:33: +1:46 |
81 |
| -+ _10 = deref_copy (_2.0: &mut [generator@$DIR/inline_generator.rs:15:5: 15:8]); // scope 6 at $DIR/inline_generator.rs:15:5: 15:41 |
82 |
| -+ _9 = discriminant((*_10)); // scope 6 at $DIR/inline_generator.rs:15:5: 15:41 |
83 |
| -+ switchInt(move _9) -> [0: bb3, 1: bb8, 3: bb7, otherwise: bb9]; // scope 6 at $DIR/inline_generator.rs:15:5: 15:41 |
| 71 | ++ StorageLive(_5); // scope 0 at $DIR/inline_generator.rs:+1:33: +1:46 |
| 72 | ++ _5 = const false; // scope 0 at $DIR/inline_generator.rs:+1:33: +1:46 |
| 73 | ++ _8 = deref_copy (_2.0: &mut [generator@$DIR/inline_generator.rs:15:5: 15:8]); // scope 6 at $DIR/inline_generator.rs:15:5: 15:41 |
| 74 | ++ _7 = discriminant((*_8)); // scope 6 at $DIR/inline_generator.rs:15:5: 15:41 |
| 75 | ++ switchInt(move _7) -> [0: bb3, 1: bb8, 3: bb7, otherwise: bb9]; // scope 6 at $DIR/inline_generator.rs:15:5: 15:41 |
84 | 76 | }
|
85 | 77 |
|
86 | 78 | - bb3: {
|
87 | 79 | + bb1: {
|
88 |
| -+ StorageDead(_7); // scope 0 at $DIR/inline_generator.rs:+1:33: +1:46 |
| 80 | ++ StorageDead(_5); // scope 0 at $DIR/inline_generator.rs:+1:33: +1:46 |
89 | 81 | StorageDead(_2); // scope 0 at $DIR/inline_generator.rs:+1:45: +1:46
|
90 | 82 | StorageDead(_4); // scope 0 at $DIR/inline_generator.rs:+1:46: +1:47
|
91 | 83 | _0 = const (); // scope 0 at $DIR/inline_generator.rs:+0:11: +2:2
|
|
99 | 91 | + }
|
100 | 92 | +
|
101 | 93 | + bb3: {
|
102 |
| -+ StorageLive(_8); // scope 6 at $DIR/inline_generator.rs:15:17: 15:39 |
103 |
| -+ switchInt(_7) -> [0: bb5, otherwise: bb4]; // scope 6 at $DIR/inline_generator.rs:15:20: 15:21 |
| 94 | ++ StorageLive(_6); // scope 6 at $DIR/inline_generator.rs:15:17: 15:39 |
| 95 | ++ switchInt(_5) -> [0: bb5, otherwise: bb4]; // scope 6 at $DIR/inline_generator.rs:15:20: 15:21 |
104 | 96 | + }
|
105 | 97 | +
|
106 | 98 | + bb4: {
|
107 |
| -+ _8 = const 7_i32; // scope 6 at $DIR/inline_generator.rs:15:24: 15:25 |
| 99 | ++ _6 = const 7_i32; // scope 6 at $DIR/inline_generator.rs:15:24: 15:25 |
108 | 100 | + goto -> bb6; // scope 6 at $DIR/inline_generator.rs:15:17: 15:39
|
109 | 101 | + }
|
110 | 102 | +
|
111 | 103 | + bb5: {
|
112 |
| -+ _8 = const 13_i32; // scope 6 at $DIR/inline_generator.rs:15:35: 15:37 |
| 104 | ++ _6 = const 13_i32; // scope 6 at $DIR/inline_generator.rs:15:35: 15:37 |
113 | 105 | + goto -> bb6; // scope 6 at $DIR/inline_generator.rs:15:17: 15:39
|
114 | 106 | + }
|
115 | 107 | +
|
116 | 108 | + bb6: {
|
117 |
| -+ _1 = GeneratorState::<i32, bool>::Yielded(move _8); // scope 6 at $DIR/inline_generator.rs:15:11: 15:39 |
118 |
| -+ _11 = deref_copy (_2.0: &mut [generator@$DIR/inline_generator.rs:15:5: 15:8]); // scope 6 at $DIR/inline_generator.rs:15:11: 15:39 |
119 |
| -+ discriminant((*_11)) = 3; // scope 6 at $DIR/inline_generator.rs:15:11: 15:39 |
| 109 | ++ _1 = GeneratorState::<i32, bool>::Yielded(move _6); // scope 6 at $DIR/inline_generator.rs:15:11: 15:39 |
| 110 | ++ _9 = deref_copy (_2.0: &mut [generator@$DIR/inline_generator.rs:15:5: 15:8]); // scope 6 at $DIR/inline_generator.rs:15:11: 15:39 |
| 111 | ++ discriminant((*_9)) = 3; // scope 6 at $DIR/inline_generator.rs:15:11: 15:39 |
120 | 112 | + goto -> bb1; // scope 0 at $DIR/inline_generator.rs:15:11: 15:39
|
121 | 113 | + }
|
122 | 114 | +
|
123 | 115 | + bb7: {
|
124 |
| -+ StorageLive(_8); // scope 6 at $DIR/inline_generator.rs:15:5: 15:41 |
125 |
| -+ StorageDead(_8); // scope 6 at $DIR/inline_generator.rs:15:38: 15:39 |
126 |
| -+ _1 = GeneratorState::<i32, bool>::Complete(_7); // scope 6 at $DIR/inline_generator.rs:15:41: 15:41 |
127 |
| -+ _12 = deref_copy (_2.0: &mut [generator@$DIR/inline_generator.rs:15:5: 15:8]); // scope 6 at $DIR/inline_generator.rs:15:41: 15:41 |
128 |
| -+ discriminant((*_12)) = 1; // scope 6 at $DIR/inline_generator.rs:15:41: 15:41 |
| 116 | ++ StorageLive(_6); // scope 6 at $DIR/inline_generator.rs:15:5: 15:41 |
| 117 | ++ StorageDead(_6); // scope 6 at $DIR/inline_generator.rs:15:38: 15:39 |
| 118 | ++ _1 = GeneratorState::<i32, bool>::Complete(_5); // scope 6 at $DIR/inline_generator.rs:15:41: 15:41 |
| 119 | ++ _10 = deref_copy (_2.0: &mut [generator@$DIR/inline_generator.rs:15:5: 15:8]); // scope 6 at $DIR/inline_generator.rs:15:41: 15:41 |
| 120 | ++ discriminant((*_10)) = 1; // scope 6 at $DIR/inline_generator.rs:15:41: 15:41 |
129 | 121 | + goto -> bb1; // scope 0 at $DIR/inline_generator.rs:15:41: 15:41
|
130 | 122 | + }
|
131 | 123 | +
|
|
0 commit comments