@@ -778,9 +778,8 @@ pub struct Block {
778
778
pub rules : BlockCheckMode ,
779
779
pub span : Span ,
780
780
/// If true, then there may exist `break 'a` values that aim to
781
- /// break out of this block early. As of this writing, this is not
782
- /// currently permitted in Rust itself, but it is generated as
783
- /// part of `catch` statements.
781
+ /// break out of this block early.
782
+ /// Used by `'label: {}` blocks and by `catch` statements.
784
783
pub targeted_by_break : bool ,
785
784
/// If true, don't emit return value type errors as the parser had
786
785
/// to recover from a parse error so this block will not have an
@@ -1381,8 +1380,8 @@ pub enum Expr_ {
1381
1380
/// This may also be a generator literal, indicated by the final boolean,
1382
1381
/// in that case there is an GeneratorClause.
1383
1382
ExprClosure ( CaptureClause , P < FnDecl > , BodyId , Span , Option < GeneratorMovability > ) ,
1384
- /// A block (`{ ... }`)
1385
- ExprBlock ( P < Block > ) ,
1383
+ /// A block (`'label: { ... }`)
1384
+ ExprBlock ( P < Block > , Option < Label > ) ,
1386
1385
1387
1386
/// An assignment (`a = foo()`)
1388
1387
ExprAssign ( P < Expr > , P < Expr > ) ,
0 commit comments