mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Allign RecordPat with RecordExpr
This commit is contained in:
parent
572f1c08b6
commit
14cb96ec0e
22 changed files with 78 additions and 85 deletions
|
@ -529,16 +529,15 @@ RefPat =
|
|||
'&' 'mut'? Pat
|
||||
|
||||
RecordPat =
|
||||
Path RecordFieldPatList
|
||||
Path RecordPatFieldList
|
||||
|
||||
RecordFieldPatList =
|
||||
RecordPatFieldList =
|
||||
'{'
|
||||
record_field_pats:RecordFieldPat*
|
||||
BindPat*
|
||||
fields:(RecordPatField (',' RecordPatField)* ','?)
|
||||
'..'?
|
||||
'}'
|
||||
|
||||
RecordFieldPat =
|
||||
RecordPatField =
|
||||
Attr* (NameRef ':')? Pat
|
||||
|
||||
OrPat =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue