mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 14:51:48 +00:00
Fix handling of literal patterns
Wrap them in a LiteralPat node so they can be distinguished from literal expressions.
This commit is contained in:
parent
7ebde241c0
commit
f1afc93353
10 changed files with 133 additions and 41 deletions
|
@ -850,6 +850,7 @@ impl ExprCollector {
|
|||
}
|
||||
|
||||
// TODO: implement
|
||||
ast::PatKind::LiteralPat(_) => Pat::Missing,
|
||||
ast::PatKind::SlicePat(_) | ast::PatKind::RangePat(_) => Pat::Missing,
|
||||
};
|
||||
let syntax_ptr = SyntaxNodePtr::new(pat.syntax());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue