mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
minor: Remove unused code
This commit is contained in:
parent
0327df224b
commit
1234d8647f
2 changed files with 0 additions and 18 deletions
|
@ -383,7 +383,6 @@ impl<'a> CompletionContext<'a> {
|
|||
// FIXME: This shouldn't exist
|
||||
pub(crate) fn is_path_disallowed(&self) -> bool {
|
||||
!self.qualifier_ctx.none()
|
||||
|| matches!(self.prev_sibling, Some(ImmediatePrevSibling::Visibility))
|
||||
|| (matches!(self.name_ctx(), Some(NameContext { .. })) && self.pattern_ctx.is_none())
|
||||
|| matches!(self.pattern_ctx, Some(PatternContext { record_pat: Some(_), .. }))
|
||||
|| matches!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue