Skip to content

Commit ceca945

Browse files
committed
Finalize visibility grammar
1 parent 3dce34a commit ceca945

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

xtask/src/codegen/rust.ungram

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,14 @@ ConstParam =
173173
LifetimeParam =
174174
Attr* 'lifetime'
175175

176+
Visibility =
177+
'pub' ('('
178+
'super'
179+
| 'self'
180+
| 'crate'
181+
| 'in' Path
182+
')')?
183+
176184
ParenType =
177185
'(' TypeRef ')'
178186

@@ -391,9 +399,6 @@ TupleStructPat =
391399
TuplePat =
392400
'(' args:Pat* ')'
393401

394-
Visibility =
395-
'pub' ('(' 'super' | 'self' | 'crate' | 'in' Path ')')?
396-
397402
Name =
398403
'ident'
399404

0 commit comments

Comments
 (0)