mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Minor, reorder
This commit is contained in:
parent
97fb5daf72
commit
98ec5f2c21
1 changed files with 5 additions and 4 deletions
|
@ -82,10 +82,6 @@ StructDef =
|
||||||
| TupleFieldDefList WhereClause? ';'
|
| TupleFieldDefList WhereClause? ';'
|
||||||
)
|
)
|
||||||
|
|
||||||
UnionDef =
|
|
||||||
Attr* Visibility? 'union' Name GenericParamList? WhereClause?
|
|
||||||
RecordFieldDefList
|
|
||||||
|
|
||||||
RecordFieldDefList =
|
RecordFieldDefList =
|
||||||
'{' fields:RecordFieldDef* '}'
|
'{' fields:RecordFieldDef* '}'
|
||||||
|
|
||||||
|
@ -102,6 +98,11 @@ FieldDefList =
|
||||||
RecordFieldDefList
|
RecordFieldDefList
|
||||||
| TupleFieldDefList
|
| TupleFieldDefList
|
||||||
|
|
||||||
|
|
||||||
|
UnionDef =
|
||||||
|
Attr* Visibility? 'union' Name GenericParamList? WhereClause?
|
||||||
|
RecordFieldDefList
|
||||||
|
|
||||||
EnumDef =
|
EnumDef =
|
||||||
Attr* Visibility? 'enum' Name GenericParamList? WhereClause?
|
Attr* Visibility? 'enum' Name GenericParamList? WhereClause?
|
||||||
variant_list:EnumVariantList
|
variant_list:EnumVariantList
|
||||||
|
|
Loading…
Reference in a new issue