mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +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
|
@ -870,7 +870,8 @@ impl_from!(
|
|||
MacroId(Macro2Id, MacroRulesId, ProcMacroId),
|
||||
ImplId,
|
||||
GenericParamId,
|
||||
ExternCrateId
|
||||
ExternCrateId,
|
||||
UseId
|
||||
for AttrDefId
|
||||
);
|
||||
|
||||
|
@ -904,6 +905,15 @@ impl From<ItemContainerId> for AttrDefId {
|
|||
}
|
||||
}
|
||||
}
|
||||
impl From<AssocItemId> for AttrDefId {
|
||||
fn from(assoc: AssocItemId) -> Self {
|
||||
match assoc {
|
||||
AssocItemId::FunctionId(it) => AttrDefId::FunctionId(it),
|
||||
AssocItemId::ConstId(it) => AttrDefId::ConstId(it),
|
||||
AssocItemId::TypeAliasId(it) => AttrDefId::TypeAliasId(it),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
pub enum VariantId {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue