diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-12-20 19:51:03 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-20 19:51:03 +0000 |
commit | 6eab968c601637361e8fbd1ee93ded1b0d967bee (patch) | |
tree | 0d45c734f00247837f923f203b8cc3ffcfcc3e61 /crates/ra_hir_def/src/child_by_source.rs | |
parent | f578cd21823484cc1ee8e4273cd5c2f837934f34 (diff) | |
parent | 7a862f0d47e8ae018d449a04c918ea3705785552 (diff) |
Merge #2624
2624: Separate module item from module scope r=matklad a=matklad
bors r+
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir_def/src/child_by_source.rs')
-rw-r--r-- | crates/ra_hir_def/src/child_by_source.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir_def/src/child_by_source.rs b/crates/ra_hir_def/src/child_by_source.rs index f5a65ad40..4488e8502 100644 --- a/crates/ra_hir_def/src/child_by_source.rs +++ b/crates/ra_hir_def/src/child_by_source.rs | |||
@@ -80,9 +80,9 @@ impl ChildBySource for ModuleId { | |||
80 | 80 | ||
81 | module_data.scope.declarations().for_each(|item| add_module_def(db, &mut res, item)); | 81 | module_data.scope.declarations().for_each(|item| add_module_def(db, &mut res, item)); |
82 | 82 | ||
83 | for &impl_ in module_data.impls.iter() { | 83 | for imp in module_data.scope.impls() { |
84 | let src = impl_.lookup(db).source(db); | 84 | let src = imp.lookup(db).source(db); |
85 | res[keys::IMPL].insert(src, impl_) | 85 | res[keys::IMPL].insert(src, imp) |
86 | } | 86 | } |
87 | 87 | ||
88 | res | 88 | res |