aboutsummaryrefslogtreecommitdiff
path: root/xtask
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-02-11 21:46:36 +0000
committerGitHub <[email protected]>2020-02-11 21:46:36 +0000
commit759100fb0dcb41518f2a593dae5de5bbedd07776 (patch)
tree1889a546fdec52286157c2a1d8e11eca2c4883dc /xtask
parentaf5042bd61877383398c17d941cf4f93f1c2d6be (diff)
parenta3b104aa6df205e74c116d8c9e41900807924e70 (diff)
Merge #3062
3062: Implement slice pattern AST > HIR lowering r=jplatte a=jplatte WIP. The necessary changes for parsing are implemented, but actual inference is not yet. Just wanted to upload what I've got so far so it doesn't get duplicated :) Will fix #3043 Co-authored-by: Jonas Platte <[email protected]>
Diffstat (limited to 'xtask')
-rw-r--r--xtask/src/ast_src.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs
index 3f530e489..2d9ae904b 100644
--- a/xtask/src/ast_src.rs
+++ b/xtask/src/ast_src.rs
@@ -417,14 +417,14 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
417 pat: Pat, 417 pat: Pat,
418 guard: MatchGuard, 418 guard: MatchGuard,
419 Expr, 419 Expr,
420 } 420 }
421 struct MatchGuard { Expr } 421 struct MatchGuard { Expr }
422 422
423 struct RecordLit { Path, RecordFieldList } 423 struct RecordLit { Path, RecordFieldList }
424 struct RecordFieldList { 424 struct RecordFieldList {
425 fields: [RecordField], 425 fields: [RecordField],
426 spread: Expr, 426 spread: Expr,
427 } 427 }
428 struct RecordField { NameRef, Expr } 428 struct RecordField { NameRef, Expr }
429 429
430 struct OrPat { pats: [Pat] } 430 struct OrPat { pats: [Pat] }
@@ -434,8 +434,8 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
434 struct BindPat: NameOwner { Pat } 434 struct BindPat: NameOwner { Pat }
435 struct PlaceholderPat { } 435 struct PlaceholderPat { }
436 struct DotDotPat { } 436 struct DotDotPat { }
437 struct PathPat { Path } 437 struct PathPat { Path }
438 struct SlicePat {} 438 struct SlicePat { args: [Pat] }
439 struct RangePat {} 439 struct RangePat {}
440 struct LiteralPat { Literal } 440 struct LiteralPat { Literal }
441 441