mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Parse only outer_attributes for match arms for now
This commit is contained in:
parent
1c97c1ac11
commit
96e3ac389f
3 changed files with 60 additions and 47 deletions
|
@ -331,11 +331,6 @@ pub(crate) fn match_arm_list(p: &mut Parser) {
|
|||
continue;
|
||||
}
|
||||
|
||||
// This may result in invalid attributes
|
||||
// if there are inner attributes mixed in together
|
||||
// with the outer attributes, but we allow parsing
|
||||
// those so we can run validation and report better errors
|
||||
|
||||
// test match_arms_outer_attributes
|
||||
// fn foo() {
|
||||
// match () {
|
||||
|
@ -349,7 +344,7 @@ pub(crate) fn match_arm_list(p: &mut Parser) {
|
|||
// _ => (),
|
||||
// }
|
||||
// }
|
||||
attributes::all_attributes(p);
|
||||
attributes::outer_attributes(p);
|
||||
|
||||
// test match_arms_commas
|
||||
// fn foo() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue