diff options
author | Aleksey Kladov <[email protected]> | 2020-07-31 18:54:16 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-31 19:00:48 +0100 |
commit | 14cb96ec0e6be3b99bfe4ea373c058dcbd2a4f79 (patch) | |
tree | 730802ad5c2d522bd77eba81984d8e368e852948 /xtask/src/codegen | |
parent | 572f1c08b6ba43bdd57c5cb99f79a08ecd821c1c (diff) |
Allign RecordPat with RecordExpr
Diffstat (limited to 'xtask/src/codegen')
-rw-r--r-- | xtask/src/codegen/rust.ungram | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/xtask/src/codegen/rust.ungram b/xtask/src/codegen/rust.ungram index 27bf563b6..643668863 100644 --- a/xtask/src/codegen/rust.ungram +++ b/xtask/src/codegen/rust.ungram | |||
@@ -529,16 +529,15 @@ RefPat = | |||
529 | '&' 'mut'? Pat | 529 | '&' 'mut'? Pat |
530 | 530 | ||
531 | RecordPat = | 531 | RecordPat = |
532 | Path RecordFieldPatList | 532 | Path RecordPatFieldList |
533 | 533 | ||
534 | RecordFieldPatList = | 534 | RecordPatFieldList = |
535 | '{' | 535 | '{' |
536 | record_field_pats:RecordFieldPat* | 536 | fields:(RecordPatField (',' RecordPatField)* ','?) |
537 | BindPat* | ||
538 | '..'? | 537 | '..'? |
539 | '}' | 538 | '}' |
540 | 539 | ||
541 | RecordFieldPat = | 540 | RecordPatField = |
542 | Attr* (NameRef ':')? Pat | 541 | Attr* (NameRef ':')? Pat |
543 | 542 | ||
544 | OrPat = | 543 | OrPat = |