Mark ignore(illustrative) on docs in compiler/rustc_ast_lowering/src/expr.rs
This commit is contained in:
parent
9a4c5abe45
commit
a1999b76aa
1 changed files with 3 additions and 3 deletions
|
@ -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))`.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue