File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
src/librustc_mir/transform Expand file tree Collapse file tree 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 {
186186 Local :: new ( 1 )
187187}
188188
189- /// Generator have not been resumed yet
189+ /// Generator has not been resumed yet.
190190const UNRESUMED : usize = GeneratorSubsts :: UNRESUMED ;
191- /// Generator has returned / is completed
191+ /// Generator has returned / is completed.
192192const RETURNED : usize = GeneratorSubsts :: RETURNED ;
193- /// Generator has been poisoned
193+ /// Generator has panicked and is poisoned.
194194const POISONED : usize = GeneratorSubsts :: POISONED ;
195195
196+ /// A `yield` point in the generator.
196197struct SuspensionPoint < ' tcx > {
198+ /// State discriminant used when suspending or resuming at this point.
197199 state : usize ,
200+ /// The block to jump to after resumption.
198201 resume : BasicBlock ,
202+ /// Where to move the resume argument after resumption.
199203 resume_arg : Place < ' tcx > ,
204+ /// Which block to jump to if the generator is dropped in this state.
200205 drop : Option < BasicBlock > ,
206+ /// Set of locals that have live storage while at this suspension point.
201207 storage_liveness : liveness:: LiveVarSet ,
202208}
203209
You can’t perform that action at this time.
0 commit comments