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/ast_src.rs | 2 +- xtask/src/codegen/rust.ungram | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'xtask/src') diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index 47e9d0c21..e21618cbd 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs @@ -94,7 +94,7 @@ pub(crate) const KINDS_SRC: KindsSrc = KindsSrc { nodes: &[ "SOURCE_FILE", "STRUCT_DEF", - "UNION_DEF", + "UNION", "ENUM_DEF", "FN", "RET_TYPE", 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