Skip to content

Commit b2cdb0b

Browse files
committed
Fix param gramamr
1 parent ba71f05 commit b2cdb0b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

xtask/src/codegen/rust.ungram

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,11 @@ SelfParam =
6666
)
6767

6868
Param =
69-
Attr* Pat (':' ascribed_type:TypeRef)
70-
| '...'
69+
Attr* (
70+
Pat (':' ascribed_type:TypeRef)
71+
| ascribed_type:TypeRef
72+
| '...'
73+
)
7174

7275
RetType =
7376
'->' TypeRef

0 commit comments

Comments
 (0)