mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Stop reexporting hir_def
's ItemInNs
from HIR
This commit is contained in:
parent
1662c3470d
commit
18f86baa62
6 changed files with 60 additions and 27 deletions
|
@ -620,6 +620,5 @@ fn path_import_candidate(
|
|||
}
|
||||
|
||||
fn item_as_assoc(db: &RootDatabase, item: ItemInNs) -> Option<AssocItem> {
|
||||
item.as_module_def_id()
|
||||
.and_then(|module_def_id| ModuleDef::from(module_def_id).as_assoc_item(db))
|
||||
item.as_module_def().and_then(|module_def| module_def.as_assoc_item(db))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue