Skip to content

Commit a1999b7

Browse files
committed
Mark ignore(illustrative) on docs in compiler/rustc_ast_lowering/src/expr.rs
1 parent 9a4c5ab commit a1999b7

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+3
-3
lines changed

compiler/rustc_ast_lowering/src/expr.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,11 +1609,11 @@ impl<'hir> LoweringContext<'_, 'hir> {
16091609
}
16101610

16111611
/// Desugar `ExprKind::Yeet` from: `do yeet <expr>` into:
1612-
/// ```rust
1612+
/// ```ignore(illustrative)
16131613
/// // If there is an enclosing `try {...}`:
1614-
/// break 'catch_target FromResidual::from_residual(Yeet(residual)),
1614+
/// break 'catch_target FromResidual::from_residual(Yeet(residual));
16151615
/// // Otherwise:
1616-
/// return FromResidual::from_residual(Yeet(residual)),
1616+
/// return FromResidual::from_residual(Yeet(residual));
16171617
/// ```
16181618
/// But to simplify this, there's a `from_yeet` lang item function which
16191619
/// handles the combined `FromResidual::from_residual(Yeet(residual))`.

0 commit comments

Comments
 (0)