mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Implement slice pattern AST > HIR lowering
This commit is contained in:
parent
3e1d97790b
commit
a3b104aa6d
8 changed files with 64 additions and 13 deletions
|
@ -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 }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue