diff options
Diffstat (limited to 'crates/ra_parser')
-rw-r--r-- | crates/ra_parser/src/grammar/expressions.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/ra_parser/src/grammar/expressions.rs b/crates/ra_parser/src/grammar/expressions.rs index 3cf619e38..06c92645e 100644 --- a/crates/ra_parser/src/grammar/expressions.rs +++ b/crates/ra_parser/src/grammar/expressions.rs | |||
@@ -564,12 +564,9 @@ fn arg_list(p: &mut Parser) { | |||
564 | // fn main() { | 564 | // fn main() { |
565 | // foo(#[attr] 92) | 565 | // foo(#[attr] 92) |
566 | // } | 566 | // } |
567 | attributes::outer_attributes(p); | 567 | if !expr_with_attrs(p) { |
568 | if !p.at_ts(EXPR_FIRST) { | ||
569 | p.error("expected expression"); | ||
570 | break; | 568 | break; |
571 | } | 569 | } |
572 | expr(p); | ||
573 | if !p.at(T![')']) && !p.expect(T![,]) { | 570 | if !p.at(T![')']) && !p.expect(T![,]) { |
574 | break; | 571 | break; |
575 | } | 572 | } |