mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Merge #4667
4667: Infer labelled breaks correctly r=flodiebold a=robojumper Fixes #4663. Co-authored-by: robojumper <robojumper@gmail.com>
This commit is contained in:
commit
5579ba8af5
9 changed files with 172 additions and 37 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