mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
More precise NameKind::Self
This commit is contained in:
parent
141fca6006
commit
882fe0a47e
6 changed files with 61 additions and 69 deletions
|
@ -178,8 +178,7 @@ pub(crate) fn classify_name_ref(
|
|||
Some(NameDefinition { kind, container, visibility })
|
||||
}
|
||||
PathResolution::SelfType(impl_block) => {
|
||||
let ty = impl_block.target_ty(db);
|
||||
let kind = NameKind::SelfType(ty);
|
||||
let kind = NameKind::SelfType(impl_block);
|
||||
let container = impl_block.module(db);
|
||||
Some(NameDefinition { kind, container, visibility })
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue