diff options
author | Jonas Platte <[email protected]> | 2020-02-11 21:33:11 +0000 |
---|---|---|
committer | Jonas Platte <[email protected]> | 2020-02-11 21:33:11 +0000 |
commit | a3b104aa6df205e74c116d8c9e41900807924e70 (patch) | |
tree | ac3cb2695fba41813b70cadee3e624f71dfa2fd3 /xtask/src | |
parent | 3e1d97790be166f8735607c552a94a28ab9b09b8 (diff) |
Implement slice pattern AST > HIR lowering
Diffstat (limited to 'xtask/src')
-rw-r--r-- | xtask/src/ast_src.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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 { | |||
415 | pats: [Pat], | 415 | pats: [Pat], |
416 | guard: MatchGuard, | 416 | guard: MatchGuard, |
417 | Expr, | 417 | Expr, |
418 | } | 418 | } |
419 | struct MatchGuard { Expr } | 419 | struct MatchGuard { Expr } |
420 | 420 | ||
421 | struct RecordLit { Path, RecordFieldList } | 421 | struct RecordLit { Path, RecordFieldList } |
422 | struct RecordFieldList { | 422 | struct RecordFieldList { |
423 | fields: [RecordField], | 423 | fields: [RecordField], |
424 | spread: Expr, | 424 | spread: Expr, |
425 | } | 425 | } |
426 | struct RecordField { NameRef, Expr } | 426 | struct RecordField { NameRef, Expr } |
427 | 427 | ||
428 | struct RefPat { Pat } | 428 | struct RefPat { Pat } |
@@ -430,8 +430,8 @@ pub(crate) const AST_SRC: AstSrc = AstSrc { | |||
430 | struct BindPat: NameOwner { Pat } | 430 | struct BindPat: NameOwner { Pat } |
431 | struct PlaceholderPat { } | 431 | struct PlaceholderPat { } |
432 | struct DotDotPat { } | 432 | struct DotDotPat { } |
433 | struct PathPat { Path } | 433 | struct PathPat { Path } |
434 | struct SlicePat {} | 434 | struct SlicePat { args: [Pat] } |
435 | struct RangePat {} | 435 | struct RangePat {} |
436 | struct LiteralPat { Literal } | 436 | struct LiteralPat { Literal } |
437 | 437 | ||