mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Correct completions in items tests
This commit is contained in:
parent
a9a77671f2
commit
2a48b53220
5 changed files with 57 additions and 24 deletions
|
@ -305,6 +305,10 @@ impl<'a> CompletionContext<'a> {
|
|||
)
|
||||
}
|
||||
|
||||
pub(crate) fn has_impl_prev_sibling(&self) -> bool {
|
||||
matches!(self.prev_sibling, Some(ImmediatePrevSibling::ImplDefType))
|
||||
}
|
||||
|
||||
pub(crate) fn has_visibility_prev_sibling(&self) -> bool {
|
||||
matches!(self.prev_sibling, Some(ImmediatePrevSibling::Visibility))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue