We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a4c5ab commit a1999b7Copy full SHA for a1999b7
1 file changed
compiler/rustc_ast_lowering/src/expr.rs
@@ -1609,11 +1609,11 @@ impl<'hir> LoweringContext<'_, 'hir> {
1609
}
1610
1611
/// Desugar `ExprKind::Yeet` from: `do yeet <expr>` into:
1612
- /// ```rust
+ /// ```ignore(illustrative)
1613
/// // If there is an enclosing `try {...}`:
1614
- /// break 'catch_target FromResidual::from_residual(Yeet(residual)),
+ /// break 'catch_target FromResidual::from_residual(Yeet(residual));
1615
/// // Otherwise:
1616
- /// return FromResidual::from_residual(Yeet(residual)),
+ /// return FromResidual::from_residual(Yeet(residual));
1617
/// ```
1618
/// But to simplify this, there's a `from_yeet` lang item function which
1619
/// handles the combined `FromResidual::from_residual(Yeet(residual))`.
0 commit comments