1
Fork 0

Mark ignore(illustrative) on docs in compiler/rustc_ast_lowering/src/expr.rs

This commit is contained in:
reez12g 2022-09-16 15:51:52 +09:00
parent 9a4c5abe45
commit a1999b76aa

View file

@ -1609,11 +1609,11 @@ impl<'hir> LoweringContext<'_, 'hir> {
} }
/// Desugar `ExprKind::Yeet` from: `do yeet <expr>` into: /// Desugar `ExprKind::Yeet` from: `do yeet <expr>` into:
/// ```rust /// ```ignore(illustrative)
/// // If there is an enclosing `try {...}`: /// // If there is an enclosing `try {...}`:
/// break 'catch_target FromResidual::from_residual(Yeet(residual)), /// break 'catch_target FromResidual::from_residual(Yeet(residual));
/// // Otherwise: /// // Otherwise:
/// return FromResidual::from_residual(Yeet(residual)), /// return FromResidual::from_residual(Yeet(residual));
/// ``` /// ```
/// But to simplify this, there's a `from_yeet` lang item function which /// But to simplify this, there's a `from_yeet` lang item function which
/// handles the combined `FromResidual::from_residual(Yeet(residual))`. /// handles the combined `FromResidual::from_residual(Yeet(residual))`.