From 4dce66ad319cbcbfae5f9e941b80c28cf546590c Mon Sep 17 00:00:00 2001 From: DJMcNab <36049421+DJMcNab@users.noreply.github.com> Date: Wed, 19 Dec 2018 19:35:14 +0000 Subject: Fix handling of structs in match arms --- crates/ra_syntax/src/grammar/expressions/atom.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_syntax/src') diff --git a/crates/ra_syntax/src/grammar/expressions/atom.rs b/crates/ra_syntax/src/grammar/expressions/atom.rs index 04087fd60..452e91485 100644 --- a/crates/ra_syntax/src/grammar/expressions/atom.rs +++ b/crates/ra_syntax/src/grammar/expressions/atom.rs @@ -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); -- cgit v1.2.3