aboutsummaryrefslogtreecommitdiff
path: root/xtask/src
diff options
context:
space:
mode:
Diffstat (limited to 'xtask/src')
-rw-r--r--xtask/src/ast_src.rs2
-rw-r--r--xtask/src/codegen/rust.ungram14
2 files changed, 8 insertions, 8 deletions
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs
index e8a90636e..fe8381e41 100644
--- a/xtask/src/ast_src.rs
+++ b/xtask/src/ast_src.rs
@@ -95,7 +95,7 @@ pub(crate) const KINDS_SRC: KindsSrc = KindsSrc {
95 "SOURCE_FILE", 95 "SOURCE_FILE",
96 "STRUCT", 96 "STRUCT",
97 "UNION", 97 "UNION",
98 "ENUM_DEF", 98 "ENUM",
99 "FN", 99 "FN",
100 "RET_TYPE", 100 "RET_TYPE",
101 "EXTERN_CRATE", 101 "EXTERN_CRATE",
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram
index d038c5c5a..9c6797cb7 100644
--- a/xtask/src/codegen/rust.ungram
+++ b/xtask/src/codegen/rust.ungram
@@ -5,7 +5,7 @@ SourceFile =
5 5
6Item = 6Item =
7 ConstDef 7 ConstDef
8| EnumDef 8| Enum
9| ExternBlock 9| ExternBlock
10| ExternCrate 10| ExternCrate
11| Fn 11| Fn
@@ -98,11 +98,7 @@ FieldList =
98 RecordFieldList 98 RecordFieldList
99| TupleFieldList 99| TupleFieldList
100 100
101Union = 101Enum =
102 Attr* Visibility? 'union' Name GenericParamList? WhereClause?
103 RecordFieldList
104
105EnumDef =
106 Attr* Visibility? 'enum' Name GenericParamList? WhereClause? 102 Attr* Visibility? 'enum' Name GenericParamList? WhereClause?
107 variant_list:EnumVariantList 103 variant_list:EnumVariantList
108 104
@@ -112,6 +108,10 @@ EnumVariantList =
112EnumVariant = 108EnumVariant =
113 Attr* Visibility? Name FieldList ('=' Expr)? 109 Attr* Visibility? Name FieldList ('=' Expr)?
114 110
111Union =
112 Attr* Visibility? 'union' Name GenericParamList? WhereClause?
113 RecordFieldList
114
115TraitDef = 115TraitDef =
116 Attr* Visibility? 'unsafe'? 'auto'? 'trait' Name GenericParamList 116 Attr* Visibility? 'unsafe'? 'auto'? 'trait' Name GenericParamList
117 (':' TypeBoundList?)? WhereClause 117 (':' TypeBoundList?)? WhereClause
@@ -454,7 +454,7 @@ MetaItem =
454 454
455AdtDef = 455AdtDef =
456 Struct 456 Struct
457| EnumDef 457| Enum
458| Union 458| Union
459 459
460TypeRef = 460TypeRef =