From b2cdb0b22631a66a00be25ba4b2e9c0b34ff426a Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 30 Jul 2020 18:15:08 +0200 Subject: Fix param gramamr --- xtask/src/codegen/rust.ungram | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index ef7c3e50e..4f7f6403e 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram @@ -66,8 +66,11 @@ SelfParam = ) Param = - Attr* Pat (':' ascribed_type:TypeRef) -| '...' + Attr* ( + Pat (':' ascribed_type:TypeRef) + | ascribed_type:TypeRef + | '...' + ) RetType = '->' TypeRef -- cgit v1.2.3