diff options
author | Aleksey Kladov <[email protected]> | 2020-07-31 20:58:36 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-31 21:04:12 +0100 |
commit | b9c6aa9ec9e491160a6ad7c5ec66151bd67b0ecd (patch) | |
tree | 0ab0318ef1bd2bea1834fbe2ec0c899b5dd6189b /xtask/src/codegen | |
parent | 675e86becfab2615528152487db49bce1b43bd60 (diff) |
Unify naming of tuple fields
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 |