From a3b104aa6df205e74c116d8c9e41900807924e70 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Tue, 11 Feb 2020 22:33:11 +0100 Subject: Implement slice pattern AST > HIR lowering --- xtask/src/ast_src.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xtask') diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs index 67d1f41bc..efe1e795b 100644 --- a/xtask/src/ast_src.rs +++ b/xtask/src/ast_src.rs @@ -415,14 +415,14 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { pats: [Pat], guard: MatchGuard, Expr, - } + } struct MatchGuard { Expr } struct RecordLit { Path, RecordFieldList } struct RecordFieldList { fields: [RecordField], spread: Expr, - } + } struct RecordField { NameRef, Expr } struct RefPat { Pat } @@ -430,8 +430,8 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { struct BindPat: NameOwner { Pat } struct PlaceholderPat { } struct DotDotPat { } - struct PathPat { Path } - struct SlicePat {} + struct PathPat { Path } + struct SlicePat { args: [Pat] } struct RangePat {} struct LiteralPat { Literal } -- cgit v1.2.3