mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Move store TypeRef of type based path in PathKind
This commit is contained in:
parent
4926bed426
commit
de9670fe45
4 changed files with 11 additions and 21 deletions
|
@ -190,7 +190,7 @@ impl Resolver {
|
|||
db: &impl HirDatabase,
|
||||
path: &'p Path,
|
||||
) -> Option<ResolveValueResult<'p>> {
|
||||
if let Some(type_ref) = &path.type_ref {
|
||||
if let PathKind::Type(type_ref) = &path.kind {
|
||||
return Some(ResolveValueResult::TypeRef(type_ref));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue