Skip to content

Commit e0f2113

Browse files
committed
Reorder
1 parent 6b7cb8b commit e0f2113

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

xtask/src/codegen/rust.ungram

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ Union =
114114
Attr* Visibility? 'union' Name GenericParamList? WhereClause?
115115
RecordFieldList
116116

117+
AdtDef =
118+
Struct
119+
| Enum
120+
| Union
121+
117122
Const =
118123
Attr* Visibility? 'default'? 'const' (Name | '_') ':' ty:TypeRef
119124
'=' body:Expr ';'
@@ -183,6 +188,21 @@ Visibility =
183188
Attr =
184189
'#' '!'? '[' Path ('=' Literal | TokenTree)? ']'
185190

191+
TypeRef =
192+
ParenType
193+
| TupleType
194+
| NeverType
195+
| PathType
196+
| PointerType
197+
| ArrayType
198+
| SliceType
199+
| ReferenceType
200+
| PlaceholderType
201+
| FnPointerType
202+
| ForType
203+
| ImplTraitType
204+
| DynTraitType
205+
186206
ParenType =
187207
'(' ty:TypeRef ')'
188208

@@ -469,26 +489,6 @@ LifetimeArg =
469489
ConstArg =
470490
Literal | BlockExpr BlockExpr
471491

472-
AdtDef =
473-
Struct
474-
| Enum
475-
| Union
476-
477-
TypeRef =
478-
ParenType
479-
| TupleType
480-
| NeverType
481-
| PathType
482-
| PointerType
483-
| ArrayType
484-
| SliceType
485-
| ReferenceType
486-
| PlaceholderType
487-
| FnPointerType
488-
| ForType
489-
| ImplTraitType
490-
| DynTraitType
491-
492492
Stmt =
493493
LetStmt
494494
| ExprStmt

0 commit comments

Comments
 (0)