From 98ec5f2c21d0072e4811309ac111db75b87146d1 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 30 Jul 2020 16:12:35 +0200 Subject: [PATCH] Minor, reorder --- xtask/src/codegen/rust.ungram | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index 833ffd9e01b..7f3063efb97 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram @@ -82,10 +82,6 @@ StructDef = | TupleFieldDefList WhereClause? ';' ) -UnionDef = - Attr* Visibility? 'union' Name GenericParamList? WhereClause? - RecordFieldDefList - RecordFieldDefList = '{' fields:RecordFieldDef* '}' @@ -102,6 +98,11 @@ FieldDefList = RecordFieldDefList | TupleFieldDefList + +UnionDef = + Attr* Visibility? 'union' Name GenericParamList? WhereClause? + RecordFieldDefList + EnumDef = Attr* Visibility? 'enum' Name GenericParamList? WhereClause? variant_list:EnumVariantList