mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Use generic ItemLoc for impls
This commit is contained in:
parent
d137df0137
commit
1234dda9ee
5 changed files with 10 additions and 28 deletions
|
@ -134,7 +134,7 @@ impl Ty {
|
|||
LangItemTarget::ImplBlockId(it) => Some(it),
|
||||
_ => None,
|
||||
})
|
||||
.map(|it| it.lookup(db).container.krate)
|
||||
.map(|it| it.lookup(db).container.module(db).krate)
|
||||
.collect();
|
||||
Some(res)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue