File tree 1 file changed +9
-3
lines changed
src/librustc_mir/transform
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -186,18 +186,24 @@ fn self_arg() -> Local {
186
186
Local :: new ( 1 )
187
187
}
188
188
189
- /// Generator have not been resumed yet
189
+ /// Generator has not been resumed yet.
190
190
const UNRESUMED : usize = GeneratorSubsts :: UNRESUMED ;
191
- /// Generator has returned / is completed
191
+ /// Generator has returned / is completed.
192
192
const RETURNED : usize = GeneratorSubsts :: RETURNED ;
193
- /// Generator has been poisoned
193
+ /// Generator has panicked and is poisoned.
194
194
const POISONED : usize = GeneratorSubsts :: POISONED ;
195
195
196
+ /// A `yield` point in the generator.
196
197
struct SuspensionPoint < ' tcx > {
198
+ /// State discriminant used when suspending or resuming at this point.
197
199
state : usize ,
200
+ /// The block to jump to after resumption.
198
201
resume : BasicBlock ,
202
+ /// Where to move the resume argument after resumption.
199
203
resume_arg : Place < ' tcx > ,
204
+ /// Which block to jump to if the generator is dropped in this state.
200
205
drop : Option < BasicBlock > ,
206
+ /// Set of locals that have live storage while at this suspension point.
201
207
storage_liveness : liveness:: LiveVarSet ,
202
208
}
203
209
You can’t perform that action at this time.
0 commit comments