mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
correctly infer labelled breaks
This commit is contained in:
parent
fb469c3b31
commit
1cd78a3355
9 changed files with 117 additions and 46 deletions
|
@ -1058,7 +1058,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
|
|||
/// [Reference](https://doc.rust-lang.org/reference/expressions/block-expr.html)
|
||||
/// [Labels for blocks RFC](https://github.com/rust-lang/rfcs/blob/master/text/2046-label-break-value.md)
|
||||
struct BlockExpr: AttrsOwner, ModuleItemOwner {
|
||||
T!['{'], statements: [Stmt], Expr, T!['}'],
|
||||
Label, T!['{'], statements: [Stmt], Expr, T!['}'],
|
||||
}
|
||||
|
||||
/// Return expression.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue