aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-02-10 20:14:08 +0000
committerGitHub <[email protected]>2020-02-10 20:14:08 +0000
commitf8d6d6f23bfb15021be91031ba983da19f0d3ada (patch)
tree9c6ab9425ba72c440b2a475d92ed984ccf1aebcc /xtask
parent29f5e7eebf606c1929d5a77ad66624cd4f3fcf49 (diff)
parent49b53cd7a0861cdba65643e3da441eefbe18d6e6 (diff)
Merge #3074
3074: Or patterns r=matthewjasper a=matthewjasper Works towards #2458 Co-authored-by: Matthew Jasper <[email protected]>
Diffstat (limited to 'xtask')
-rw-r--r--xtask/src/ast_src.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs
index 67d1f41bc..3f530e489 100644
--- a/xtask/src/ast_src.rs
+++ b/xtask/src/ast_src.rs
@@ -120,6 +120,8 @@ pub(crate) const KINDS_SRC: KindsSrc = KindsSrc {
120 "FOR_TYPE", 120 "FOR_TYPE",
121 "IMPL_TRAIT_TYPE", 121 "IMPL_TRAIT_TYPE",
122 "DYN_TRAIT_TYPE", 122 "DYN_TRAIT_TYPE",
123 "OR_PAT",
124 "PAREN_PAT",
123 "REF_PAT", 125 "REF_PAT",
124 "BOX_PAT", 126 "BOX_PAT",
125 "BIND_PAT", 127 "BIND_PAT",
@@ -412,7 +414,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
412 struct MatchExpr { Expr, MatchArmList } 414 struct MatchExpr { Expr, MatchArmList }
413 struct MatchArmList: AttrsOwner { arms: [MatchArm] } 415 struct MatchArmList: AttrsOwner { arms: [MatchArm] }
414 struct MatchArm: AttrsOwner { 416 struct MatchArm: AttrsOwner {
415 pats: [Pat], 417 pat: Pat,
416 guard: MatchGuard, 418 guard: MatchGuard,
417 Expr, 419 Expr,
418 } 420 }
@@ -425,6 +427,8 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
425 } 427 }
426 struct RecordField { NameRef, Expr } 428 struct RecordField { NameRef, Expr }
427 429
430 struct OrPat { pats: [Pat] }
431 struct ParenPat { Pat }
428 struct RefPat { Pat } 432 struct RefPat { Pat }
429 struct BoxPat { Pat } 433 struct BoxPat { Pat }
430 struct BindPat: NameOwner { Pat } 434 struct BindPat: NameOwner { Pat }
@@ -601,6 +605,8 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
601 } 605 }
602 606
603 enum Pat { 607 enum Pat {
608 OrPat,
609 ParenPat,
604 RefPat, 610 RefPat,
605 BoxPat, 611 BoxPat,
606 BindPat, 612 BindPat,