Skip to content

Commit 98ec5f2

Browse files
committed
Minor, reorder
1 parent 97fb5da commit 98ec5f2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

xtask/src/codegen/rust.ungram

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@ StructDef =
8282
| TupleFieldDefList WhereClause? ';'
8383
)
8484

85-
UnionDef =
86-
Attr* Visibility? 'union' Name GenericParamList? WhereClause?
87-
RecordFieldDefList
88-
8985
RecordFieldDefList =
9086
'{' fields:RecordFieldDef* '}'
9187

@@ -102,6 +98,11 @@ FieldDefList =
10298
RecordFieldDefList
10399
| TupleFieldDefList
104100

101+
102+
UnionDef =
103+
Attr* Visibility? 'union' Name GenericParamList? WhereClause?
104+
RecordFieldDefList
105+
105106
EnumDef =
106107
Attr* Visibility? 'enum' Name GenericParamList? WhereClause?
107108
variant_list:EnumVariantList

0 commit comments

Comments
 (0)