mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
fix: Fix auto-import (and completions) importing #[doc(hidden)]
items
This commit is contained in:
parent
49716e681a
commit
637f496a81
7 changed files with 155 additions and 16 deletions
|
@ -212,7 +212,7 @@ fn resolve_doc_path(
|
|||
Some(Namespace::Types) => resolved.take_types(),
|
||||
Some(Namespace::Values) => resolved.take_values(),
|
||||
Some(Namespace::Macros) => resolved.take_macros().map(ModuleDefId::MacroId),
|
||||
None => resolved.iter_items().next().map(|it| match it {
|
||||
None => resolved.iter_items().next().map(|(it, _)| match it {
|
||||
ItemInNs::Types(it) => it,
|
||||
ItemInNs::Values(it) => it,
|
||||
ItemInNs::Macros(it) => ModuleDefId::MacroId(it),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue