We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97fb5da commit 98ec5f2Copy full SHA for 98ec5f2
xtask/src/codegen/rust.ungram
@@ -82,10 +82,6 @@ StructDef =
82
| TupleFieldDefList WhereClause? ';'
83
)
84
85
-UnionDef =
86
- Attr* Visibility? 'union' Name GenericParamList? WhereClause?
87
- RecordFieldDefList
88
-
89
RecordFieldDefList =
90
'{' fields:RecordFieldDef* '}'
91
@@ -102,6 +98,11 @@ FieldDefList =
102
98
RecordFieldDefList
103
99
| TupleFieldDefList
104
100
101
+
+UnionDef =
+ Attr* Visibility? 'union' Name GenericParamList? WhereClause?
+ RecordFieldDefList
105
106
EnumDef =
107
Attr* Visibility? 'enum' Name GenericParamList? WhereClause?
108
variant_list:EnumVariantList
0 commit comments