From 1ae4721c9cfea746fce59a816b1c266bf373d6cf Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 30 Jul 2020 17:36:46 +0200 Subject: Finalize union grammar --- xtask/src/codegen/rust.ungram | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xtask/src/codegen') diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index 28b50f021..65082f3d9 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram @@ -16,7 +16,7 @@ Item = | StructDef | TraitDef | TypeAlias -| UnionDef +| Union | Use Module = @@ -98,7 +98,7 @@ FieldList = RecordFieldList | TupleFieldList -UnionDef = +Union = Attr* Visibility? 'union' Name GenericParamList? WhereClause? RecordFieldList @@ -455,7 +455,7 @@ MetaItem = AdtDef = StructDef | EnumDef -| UnionDef +| Union TypeRef = ParenType -- cgit v1.2.3