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