From 7980a7e19a679e0bc128f2c142609f7f4a197bf6 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 31 Jul 2020 18:04:57 +0200 Subject: Minor --- xtask/src/codegen/rust.ungram | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'xtask/src') diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index aef07cb1e..8edabc3b9 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram @@ -215,14 +215,13 @@ Expr = | BreakExpr | CallExpr | CastExpr +| ClosureExpr | ContinueExpr | EffectExpr | FieldExpr | ForExpr | IfExpr | IndexExpr -| Label -| ClosureExpr | Literal | LoopExpr | MacroCall @@ -340,7 +339,7 @@ ForExpr = WhileExpr = Attr* Label? 'while' Condition - loop_body:BlockExpr? + loop_body:BlockExpr Label = 'lifetime' @@ -418,13 +417,13 @@ SliceType = '[' Type ']' InferType = - '_' + '_' FnPointerType = - 'const'? 'async'? 'unsafe'? Abi? 'fn' ParamList RetType? + 'const'? 'async'? 'unsafe'? Abi? 'fn' ParamList RetType? ForType = - 'for' GenericParamList Type + 'for' GenericParamList Type ImplTraitType = 'impl' TypeBoundList @@ -433,7 +432,7 @@ DynTraitType = 'dyn' TypeBoundList TypeBoundList = - bounds:(TypeBound ('+' TypeBound)* '+'?) + bounds:(TypeBound ('+' TypeBound)* '+'?) TypeBound = 'lifetime' -- cgit v1.2.3