From 7a76433c45b01e969f1eca51aec76db53b9e4db3 Mon Sep 17 00:00:00 2001 From: DJMcNab <36049421+DJMcNab@users.noreply.github.com> Date: Sat, 26 Jan 2019 18:45:29 +0000 Subject: Struct literals should not be a `BlockLike::Block` --- crates/ra_syntax/src/grammar/expressions.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_syntax/src') diff --git a/crates/ra_syntax/src/grammar/expressions.rs b/crates/ra_syntax/src/grammar/expressions.rs index 7ee32fa7c..1604d9b5a 100644 --- a/crates/ra_syntax/src/grammar/expressions.rs +++ b/crates/ra_syntax/src/grammar/expressions.rs @@ -423,7 +423,7 @@ fn path_expr(p: &mut Parser, r: Restrictions) -> (CompletedMarker, BlockLike) { match p.current() { L_CURLY if !r.forbid_structs => { named_field_list(p); - (m.complete(p, STRUCT_LIT), BlockLike::Block) + (m.complete(p, STRUCT_LIT), BlockLike::NotBlock) } EXCL => { let block_like = items::macro_call_after_excl(p); -- cgit v1.2.3