diff options
-rw-r--r-- | xtask/src/codegen/rust.ungram | 11 |
1 files changed, 8 insertions, 3 deletions
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 = | |||
173 | LifetimeParam = | 173 | LifetimeParam = |
174 | Attr* 'lifetime' | 174 | Attr* 'lifetime' |
175 | 175 | ||
176 | Visibility = | ||
177 | 'pub' ('(' | ||
178 | 'super' | ||
179 | | 'self' | ||
180 | | 'crate' | ||
181 | | 'in' Path | ||
182 | ')')? | ||
183 | |||
176 | ParenType = | 184 | ParenType = |
177 | '(' TypeRef ')' | 185 | '(' TypeRef ')' |
178 | 186 | ||
@@ -391,9 +399,6 @@ TupleStructPat = | |||
391 | TuplePat = | 399 | TuplePat = |
392 | '(' args:Pat* ')' | 400 | '(' args:Pat* ')' |
393 | 401 | ||
394 | Visibility = | ||
395 | 'pub' ('(' 'super' | 'self' | 'crate' | 'in' Path ')')? | ||
396 | |||
397 | Name = | 402 | Name = |
398 | 'ident' | 403 | 'ident' |
399 | 404 | ||