aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-31 18:54:16 +0100
committerAleksey Kladov <[email protected]>2020-07-31 19:00:48 +0100
commit14cb96ec0e6be3b99bfe4ea373c058dcbd2a4f79 (patch)
tree730802ad5c2d522bd77eba81984d8e368e852948 /xtask
parent572f1c08b6ba43bdd57c5cb99f79a08ecd821c1c (diff)
Allign RecordPat with RecordExpr
Diffstat (limited to 'xtask')
-rw-r--r--xtask/src/ast_src.rs4
-rw-r--r--xtask/src/codegen/rust.ungram9
2 files changed, 6 insertions, 7 deletions
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs
index 762d9265e..869bdaa0d 100644
--- a/xtask/src/ast_src.rs
+++ b/xtask/src/ast_src.rs
@@ -131,8 +131,8 @@ pub(crate) const KINDS_SRC: KindsSrc = KindsSrc {
131 "DOT_DOT_PAT", 131 "DOT_DOT_PAT",
132 "PATH_PAT", 132 "PATH_PAT",
133 "RECORD_PAT", 133 "RECORD_PAT",
134 "RECORD_FIELD_PAT_LIST", 134 "RECORD_PAT_FIELD_LIST",
135 "RECORD_FIELD_PAT", 135 "RECORD_PAT_FIELD",
136 "TUPLE_STRUCT_PAT", 136 "TUPLE_STRUCT_PAT",
137 "TUPLE_PAT", 137 "TUPLE_PAT",
138 "SLICE_PAT", 138 "SLICE_PAT",
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
531RecordPat = 531RecordPat =
532 Path RecordFieldPatList 532 Path RecordPatFieldList
533 533
534RecordFieldPatList = 534RecordPatFieldList =
535 '{' 535 '{'
536 record_field_pats:RecordFieldPat* 536 fields:(RecordPatField (',' RecordPatField)* ','?)
537 BindPat*
538 '..'? 537 '..'?
539 '}' 538 '}'
540 539
541RecordFieldPat = 540RecordPatField =
542 Attr* (NameRef ':')? Pat 541 Attr* (NameRef ':')? Pat
543 542
544OrPat = 543OrPat =