mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
draw the rest of the owl
This commit is contained in:
parent
b94caeb88b
commit
4b03b39d5b
13 changed files with 959 additions and 415 deletions
|
@ -31,10 +31,7 @@ use hir_ty::{
|
|||
};
|
||||
use ra_db::{CrateId, CrateName, Edition, FileId};
|
||||
use ra_prof::profile;
|
||||
use ra_syntax::{
|
||||
ast::{self, AttrsOwner, NameOwner},
|
||||
AstNode,
|
||||
};
|
||||
use ra_syntax::ast::{self, AttrsOwner, NameOwner};
|
||||
use rustc_hash::FxHashSet;
|
||||
|
||||
use crate::{
|
||||
|
@ -205,7 +202,8 @@ impl ModuleDef {
|
|||
}
|
||||
|
||||
pub use hir_def::{
|
||||
attr::Attrs, item_scope::ItemInNs, visibility::Visibility, AssocItemId, AssocItemLoc,
|
||||
attr::Attrs, item_scope::ItemInNs, item_tree::ItemTreeNode, visibility::Visibility,
|
||||
AssocItemId, AssocItemLoc,
|
||||
};
|
||||
|
||||
impl Module {
|
||||
|
@ -872,7 +870,7 @@ where
|
|||
ID: Lookup<Data = AssocItemLoc<AST>>,
|
||||
DEF: From<ID>,
|
||||
CTOR: FnOnce(DEF) -> AssocItem,
|
||||
AST: AstNode,
|
||||
AST: ItemTreeNode,
|
||||
{
|
||||
match id.lookup(db.upcast()).container {
|
||||
AssocContainerId::TraitId(_) | AssocContainerId::ImplId(_) => Some(ctor(DEF::from(id))),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue