File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -411,14 +411,20 @@ pub struct LocalDecl<'tcx> {
411
411
/// True if this corresponds to a user-declared local variable.
412
412
pub is_user_variable : bool ,
413
413
414
- /// True if this is an internal local.
414
+ /// True if this is an internal local
415
+ ///
415
416
/// These locals are not based on types in the source code and are only used
416
417
/// for drop flags at the moment.
417
- /// The generator transformation will sanity check the locals which are live across
418
- /// a suspension point against the type components of the generator which
419
- /// type checking knows are live across a suspension point.
420
- /// We need to flag drop flags to avoid triggering this check as they are introduced
418
+ ///
419
+ /// The generator transformation will sanity check the locals which are live
420
+ /// across a suspension point against the type components of the generator
421
+ /// which type checking knows are live across a suspension point. We need to
422
+ /// flag drop flags to avoid triggering this check as they are introduced
421
423
/// after typeck.
424
+ ///
425
+ /// This should be sound because the drop flags are fully algebraic, and
426
+ /// therefore don't affect the OIBIT or outlives properties of the
427
+ /// generator.
422
428
pub internal : bool ,
423
429
424
430
/// Type of this local.
You can’t perform that action at this time.
0 commit comments