Generate link to Local
in hir::Let
documentation
This commit is contained in:
parent
cdb775cab5
commit
d919b04e59
@ -1253,11 +1253,11 @@ pub struct Arm<'hir> {
|
|||||||
pub body: &'hir Expr<'hir>,
|
pub body: &'hir Expr<'hir>,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Represents a `let <pat>[: <ty>] = <expr>` expression (not a Local), occurring in an `if-let` or
|
/// Represents a `let <pat>[: <ty>] = <expr>` expression (not a [`Local`]), occurring in an `if-let`
|
||||||
/// `let-else`, evaluating to a boolean. Typically the pattern is refutable.
|
/// or `let-else`, evaluating to a boolean. Typically the pattern is refutable.
|
||||||
///
|
///
|
||||||
/// In an if-let, imagine it as `if (let <pat> = <expr>) { ... }`; in a let-else, it is part of the
|
/// In an `if let`, imagine it as `if (let <pat> = <expr>) { ... }`; in a let-else, it is part of
|
||||||
/// desugaring to if-let. Only let-else supports the type annotation at present.
|
/// the desugaring to if-let. Only let-else supports the type annotation at present.
|
||||||
#[derive(Debug, Clone, Copy, HashStable_Generic)]
|
#[derive(Debug, Clone, Copy, HashStable_Generic)]
|
||||||
pub struct Let<'hir> {
|
pub struct Let<'hir> {
|
||||||
pub span: Span,
|
pub span: Span,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user