diff options
Diffstat (limited to 'crates/ra_syntax/src/grammar/expressions/atom.rs')
-rw-r--r-- | crates/ra_syntax/src/grammar/expressions/atom.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/crates/ra_syntax/src/grammar/expressions/atom.rs b/crates/ra_syntax/src/grammar/expressions/atom.rs index 67cd7e6b0..e74305b6a 100644 --- a/crates/ra_syntax/src/grammar/expressions/atom.rs +++ b/crates/ra_syntax/src/grammar/expressions/atom.rs | |||
@@ -331,11 +331,6 @@ pub(crate) fn match_arm_list(p: &mut Parser) { | |||
331 | continue; | 331 | continue; |
332 | } | 332 | } |
333 | 333 | ||
334 | // This may result in invalid attributes | ||
335 | // if there are inner attributes mixed in together | ||
336 | // with the outer attributes, but we allow parsing | ||
337 | // those so we can run validation and report better errors | ||
338 | |||
339 | // test match_arms_outer_attributes | 334 | // test match_arms_outer_attributes |
340 | // fn foo() { | 335 | // fn foo() { |
341 | // match () { | 336 | // match () { |
@@ -349,7 +344,7 @@ pub(crate) fn match_arm_list(p: &mut Parser) { | |||
349 | // _ => (), | 344 | // _ => (), |
350 | // } | 345 | // } |
351 | // } | 346 | // } |
352 | attributes::all_attributes(p); | 347 | attributes::outer_attributes(p); |
353 | 348 | ||
354 | // test match_arms_commas | 349 | // test match_arms_commas |
355 | // fn foo() { | 350 | // fn foo() { |