aboutsummaryrefslogtreecommitdiff
path: root/xtask/src
diff options
context:
space:
mode:
Diffstat (limited to 'xtask/src')
-rw-r--r--xtask/src/ast_src.rs8
-rw-r--r--xtask/src/codegen/rust.ungram26
2 files changed, 17 insertions, 17 deletions
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs
index 38709c63e..ad661218f 100644
--- a/xtask/src/ast_src.rs
+++ b/xtask/src/ast_src.rs
@@ -180,10 +180,10 @@ pub(crate) const KINDS_SRC: KindsSrc = KindsSrc {
180 "EXTERN_BLOCK", 180 "EXTERN_BLOCK",
181 "EXTERN_ITEM_LIST", 181 "EXTERN_ITEM_LIST",
182 "ENUM_VARIANT", 182 "ENUM_VARIANT",
183 "RECORD_FIELD_DEF_LIST", 183 "RECORD_FIELD_LIST",
184 "RECORD_FIELD_DEF", 184 "RECORD_FIELD",
185 "TUPLE_FIELD_DEF_LIST", 185 "TUPLE_FIELD_LIST",
186 "TUPLE_FIELD_DEF", 186 "TUPLE_FIELD",
187 "ENUM_VARIANT_LIST", 187 "ENUM_VARIANT_LIST",
188 "ITEM_LIST", 188 "ITEM_LIST",
189 "ASSOC_ITEM_LIST", 189 "ASSOC_ITEM_LIST",
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram
index 49b2c9ff8..ba922af0d 100644
--- a/xtask/src/codegen/rust.ungram
+++ b/xtask/src/codegen/rust.ungram
@@ -78,30 +78,30 @@ TypeAlias =
78 78
79StructDef = 79StructDef =
80 Attr* Visibility? 'struct' Name GenericParamList? ( 80 Attr* Visibility? 'struct' Name GenericParamList? (
81 WhereClause? (RecordFieldDefList | ';') 81 WhereClause? (RecordFieldList | ';')
82 | TupleFieldDefList WhereClause? ';' 82 | TupleFieldList WhereClause? ';'
83 ) 83 )
84 84
85RecordFieldDefList = 85RecordFieldList =
86 '{' fields:RecordFieldDef* '}' 86 '{' fields:RecordField* '}'
87 87
88RecordFieldDef = 88RecordField =
89 Attr* Visibility? Name ':' ascribed_type:TypeRef 89 Attr* Visibility? Name ':' ascribed_type:TypeRef
90 90
91TupleFieldDefList = 91TupleFieldList =
92 '(' fields:TupleFieldDef* ')' 92 '(' fields:TupleField* ')'
93 93
94TupleFieldDef = 94TupleField =
95 Attr* Visibility? Name TypeRef 95 Attr* Visibility? Name TypeRef
96 96
97FieldDefList = 97FieldList =
98 RecordFieldDefList 98 RecordFieldList
99| TupleFieldDefList 99| TupleFieldList
100 100
101 101
102UnionDef = 102UnionDef =
103 Attr* Visibility? 'union' Name GenericParamList? WhereClause? 103 Attr* Visibility? 'union' Name GenericParamList? WhereClause?
104 RecordFieldDefList 104 RecordFieldList
105 105
106EnumDef = 106EnumDef =
107 Attr* Visibility? 'enum' Name GenericParamList? WhereClause? 107 Attr* Visibility? 'enum' Name GenericParamList? WhereClause?
@@ -111,7 +111,7 @@ EnumVariantList =
111 '{' variants:EnumVariant* '}' 111 '{' variants:EnumVariant* '}'
112 112
113EnumVariant = 113EnumVariant =
114 Attr* Visibility? Name FieldDefList ('=' Expr)? 114 Attr* Visibility? Name FieldList ('=' Expr)?
115 115
116TraitDef = 116TraitDef =
117 Attr* Visibility? 'unsafe'? 'auto'? 'trait' Name GenericParamList 117 Attr* Visibility? 'unsafe'? 'auto'? 'trait' Name GenericParamList