diff options
author | DJMcNab <[email protected]> | 2019-01-26 18:45:29 +0000 |
---|---|---|
committer | DJMcNab <[email protected]> | 2019-01-26 18:45:29 +0000 |
commit | 7a76433c45b01e969f1eca51aec76db53b9e4db3 (patch) | |
tree | 278c3f26b9c37ec79d27cb3d02d5191cd12e4375 /crates/ra_syntax/src | |
parent | d0ef1bde893bb46f0c7f9cab34706713169adb49 (diff) |
Struct literals should not be a `BlockLike::Block`
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r-- | crates/ra_syntax/src/grammar/expressions.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
423 | match p.current() { | 423 | match p.current() { |
424 | L_CURLY if !r.forbid_structs => { | 424 | L_CURLY if !r.forbid_structs => { |
425 | named_field_list(p); | 425 | named_field_list(p); |
426 | (m.complete(p, STRUCT_LIT), BlockLike::Block) | 426 | (m.complete(p, STRUCT_LIT), BlockLike::NotBlock) |
427 | } | 427 | } |
428 | EXCL => { | 428 | EXCL => { |
429 | let block_like = items::macro_call_after_excl(p); | 429 | let block_like = items::macro_call_after_excl(p); |