mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Remove the second code-path for completing names in patterns
This commit is contained in:
parent
6a2dd7bafc
commit
adbcedde18
4 changed files with 31 additions and 70 deletions
|
@ -325,6 +325,9 @@ impl ast::BindPat {
|
|||
pub fn is_ref(&self) -> bool {
|
||||
self.syntax().children_with_tokens().any(|n| n.kind() == T![ref])
|
||||
}
|
||||
pub fn has_at(&self) -> bool {
|
||||
self.syntax().children_with_tokens().any(|it| it.kind() == T![@])
|
||||
}
|
||||
}
|
||||
|
||||
pub struct SlicePatComponents {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue