aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-30 15:12:35 +0100
committerAleksey Kladov <[email protected]>2020-07-30 15:12:35 +0100
commit98ec5f2c21d0072e4811309ac111db75b87146d1 (patch)
tree0db8779fadfb009b38309c13b4c771675d4e95a2 /xtask
parent97fb5daf723c520b0361ade3e44f130257b1fe96 (diff)
Minor, reorder
Diffstat (limited to 'xtask')
-rw-r--r--xtask/src/codegen/rust.ungram9
1 files changed, 5 insertions, 4 deletions
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram
index 833ffd9e0..7f3063efb 100644
--- a/xtask/src/codegen/rust.ungram
+++ b/xtask/src/codegen/rust.ungram
@@ -82,10 +82,6 @@ StructDef =
82 | TupleFieldDefList WhereClause? ';' 82 | TupleFieldDefList WhereClause? ';'
83 ) 83 )
84 84
85UnionDef =
86 Attr* Visibility? 'union' Name GenericParamList? WhereClause?
87 RecordFieldDefList
88
89RecordFieldDefList = 85RecordFieldDefList =
90 '{' fields:RecordFieldDef* '}' 86 '{' fields:RecordFieldDef* '}'
91 87
@@ -102,6 +98,11 @@ FieldDefList =
102 RecordFieldDefList 98 RecordFieldDefList
103| TupleFieldDefList 99| TupleFieldDefList
104 100
101
102UnionDef =
103 Attr* Visibility? 'union' Name GenericParamList? WhereClause?
104 RecordFieldDefList
105
105EnumDef = 106EnumDef =
106 Attr* Visibility? 'enum' Name GenericParamList? WhereClause? 107 Attr* Visibility? 'enum' Name GenericParamList? WhereClause?
107 variant_list:EnumVariantList 108 variant_list:EnumVariantList