From ceca94536c7346287e533cd93467c7dc5bf1ed52 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 30 Jul 2020 18:55:49 +0200 Subject: Finalize visibility grammar --- xtask/src/codegen/rust.ungram | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'xtask/src/codegen') diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index 4025f7f96..b773eaf8b 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram @@ -173,6 +173,14 @@ ConstParam = LifetimeParam = Attr* 'lifetime' +Visibility = + 'pub' ('(' + 'super' + | 'self' + | 'crate' + | 'in' Path + ')')? + ParenType = '(' TypeRef ')' @@ -391,9 +399,6 @@ TupleStructPat = TuplePat = '(' args:Pat* ')' -Visibility = - 'pub' ('(' 'super' | 'self' | 'crate' | 'in' Path ')')? - Name = 'ident' -- cgit v1.2.3