mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-08 19:40:46 +00:00
Fix handling of structs in match arms
This commit is contained in:
parent
cd8e33fb7e
commit
4dce66ad31
1 changed files with 1 additions and 1 deletions
|
@ -362,7 +362,7 @@ fn match_arm(p: &mut Parser) -> BlockLike {
|
|||
patterns::pattern(p);
|
||||
}
|
||||
if p.eat(IF_KW) {
|
||||
expr_no_struct(p);
|
||||
expr(p);
|
||||
}
|
||||
p.expect(FAT_ARROW);
|
||||
let ret = expr_stmt(p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue