mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Rename target_ty to self_ty
This commit is contained in:
parent
bb6e1bf811
commit
c2a63b97a8
16 changed files with 27 additions and 27 deletions
|
@ -361,7 +361,7 @@ fn item_for_path_search(db: &RootDatabase, item: ItemInNs) -> Option<ItemInNs> {
|
|||
Some(assoc_item) => match assoc_item.container(db) {
|
||||
AssocItemContainer::Trait(trait_) => ItemInNs::from(ModuleDef::from(trait_)),
|
||||
AssocItemContainer::Impl(impl_) => {
|
||||
ItemInNs::from(ModuleDef::from(impl_.target_ty(db).as_adt()?))
|
||||
ItemInNs::from(ModuleDef::from(impl_.self_ty(db).as_adt()?))
|
||||
}
|
||||
},
|
||||
None => item,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue