File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/rustc_ast_lowering/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1609,11 +1609,11 @@ impl<'hir> LoweringContext<'_, 'hir> {
1609
1609
}
1610
1610
1611
1611
/// Desugar `ExprKind::Yeet` from: `do yeet <expr>` into:
1612
- /// ```rust
1612
+ /// ```ignore(illustrative)
1613
1613
/// // If there is an enclosing `try {...}`:
1614
- /// break 'catch_target FromResidual::from_residual(Yeet(residual)),
1614
+ /// break 'catch_target FromResidual::from_residual(Yeet(residual));
1615
1615
/// // Otherwise:
1616
- /// return FromResidual::from_residual(Yeet(residual)),
1616
+ /// return FromResidual::from_residual(Yeet(residual));
1617
1617
/// ```
1618
1618
/// But to simplify this, there's a `from_yeet` lang item function which
1619
1619
/// handles the combined `FromResidual::from_residual(Yeet(residual))`.
You can’t perform that action at this time.
0 commit comments