diff options
Diffstat (limited to 'xtask/src')
-rw-r--r-- | xtask/src/codegen/rust.ungram | 9 |
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 | ||
85 | UnionDef = | ||
86 | Attr* Visibility? 'union' Name GenericParamList? WhereClause? | ||
87 | RecordFieldDefList | ||
88 | |||
89 | RecordFieldDefList = | 85 | RecordFieldDefList = |
90 | '{' fields:RecordFieldDef* '}' | 86 | '{' fields:RecordFieldDef* '}' |
91 | 87 | ||
@@ -102,6 +98,11 @@ FieldDefList = | |||
102 | RecordFieldDefList | 98 | RecordFieldDefList |
103 | | TupleFieldDefList | 99 | | TupleFieldDefList |
104 | 100 | ||
101 | |||
102 | UnionDef = | ||
103 | Attr* Visibility? 'union' Name GenericParamList? WhereClause? | ||
104 | RecordFieldDefList | ||
105 | |||
105 | EnumDef = | 106 | EnumDef = |
106 | Attr* Visibility? 'enum' Name GenericParamList? WhereClause? | 107 | Attr* Visibility? 'enum' Name GenericParamList? WhereClause? |
107 | variant_list:EnumVariantList | 108 | variant_list:EnumVariantList |