mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Move impls to ItemScope
This commit is contained in:
parent
030e540ad1
commit
1b8ce5b37b
10 changed files with 16 additions and 13 deletions
|
@ -58,7 +58,7 @@ impl CrateImplBlocks {
|
|||
|
||||
let crate_def_map = db.crate_def_map(krate);
|
||||
for (_module_id, module_data) in crate_def_map.modules.iter() {
|
||||
for &impl_id in module_data.impls.iter() {
|
||||
for impl_id in module_data.scope.impls() {
|
||||
match db.impl_trait(impl_id) {
|
||||
Some(tr) => {
|
||||
res.impls_by_trait.entry(tr.trait_).or_default().push(impl_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue