diff options
Diffstat (limited to 'xtask/src/codegen')
-rw-r--r-- | xtask/src/codegen/rust.ungram | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index b14801f24..aca23890c 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram | |||
@@ -359,7 +359,7 @@ IndexExpr = | |||
359 | Attr* base:Expr '[' index:Expr ']' | 359 | Attr* base:Expr '[' index:Expr ']' |
360 | 360 | ||
361 | TupleExpr = | 361 | TupleExpr = |
362 | Attr* '(' Attr* (Expr (',' Expr)* ','?)? ')' | 362 | Attr* '(' Attr* fields:(Expr (',' Expr)* ','?)? ')' |
363 | 363 | ||
364 | RecordExpr = | 364 | RecordExpr = |
365 | Path RecordExprFieldList | 365 | Path RecordExprFieldList |
@@ -560,16 +560,16 @@ RecordPatField = | |||
560 | Attr* (NameRef ':')? Pat | 560 | Attr* (NameRef ':')? Pat |
561 | 561 | ||
562 | TupleStructPat = | 562 | TupleStructPat = |
563 | Path '(' args:(Pat (',' Pat)* ','?)? ')' | 563 | Path '(' fields:(Pat (',' Pat)* ','?)? ')' |
564 | 564 | ||
565 | TuplePat = | 565 | TuplePat = |
566 | '(' args:(Pat (',' Pat)* ','?)? ')' | 566 | '(' fields:(Pat (',' Pat)* ','?)? ')' |
567 | 567 | ||
568 | ParenPat = | 568 | ParenPat = |
569 | '(' Pat ')' | 569 | '(' Pat ')' |
570 | 570 | ||
571 | SlicePat = | 571 | SlicePat = |
572 | '[' args:(Pat (',' Pat)* ','?)? ']' | 572 | '[' (Pat (',' Pat)* ','?)? ']' |
573 | 573 | ||
574 | PathPat = | 574 | PathPat = |
575 | Path | 575 | Path |