mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
simplify
This commit is contained in:
parent
bb1c7fc0cf
commit
26e784a575
4 changed files with 44 additions and 68 deletions
|
@ -308,7 +308,11 @@ impl SourceAnalyzer {
|
|||
}
|
||||
}
|
||||
|
||||
resolve_hir_path_(db, &self.resolver, &hir_path, prefer_value_ns)
|
||||
if parent().map_or(false, |it| ast::Visibility::can_cast(it.kind())) {
|
||||
resolve_hir_path_qualifier(db, &self.resolver, &hir_path)
|
||||
} else {
|
||||
resolve_hir_path_(db, &self.resolver, &hir_path, prefer_value_ns)
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn record_literal_missing_fields(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue