From 8c8d0bb34f5495e0f260b5aaf3685ecb98406f32 Mon Sep 17 00:00:00 2001 From: Matthew Jasper Date: Sun, 9 Feb 2020 18:57:01 +0000 Subject: Add or- and parenthesized-patterns --- xtask/src/ast_src.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'xtask/src/ast_src.rs') 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 { "FOR_TYPE", "IMPL_TRAIT_TYPE", "DYN_TRAIT_TYPE", + "OR_PAT", + "PAREN_PAT", "REF_PAT", "BOX_PAT", "BIND_PAT", @@ -412,7 +414,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { struct MatchExpr { Expr, MatchArmList } struct MatchArmList: AttrsOwner { arms: [MatchArm] } struct MatchArm: AttrsOwner { - pats: [Pat], + pat: Pat, guard: MatchGuard, Expr, } @@ -425,6 +427,8 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { } struct RecordField { NameRef, Expr } + struct OrPat { pats: [Pat] } + struct ParenPat { Pat } struct RefPat { Pat } struct BoxPat { Pat } struct BindPat: NameOwner { Pat } @@ -601,6 +605,8 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { } enum Pat { + OrPat, + ParenPat, RefPat, BoxPat, BindPat, -- cgit v1.2.3