diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-12-12 13:25:59 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-12 13:25:59 +0000 |
commit | d8dba7fbe587ba5fb6cfe939083ccd92c61f5827 (patch) | |
tree | c50b695604c7d418fc107775b9ec3a6845062751 /crates/ra_hir_def/src/child_by_source.rs | |
parent | b2638fcd2cc847e008e1dd7f1739283813b94026 (diff) | |
parent | 7b0644d81e52d00a7a6795b187f356213ff68225 (diff) |
Merge #2537
2537: Switch to the new location for impls r=matklad a=matklad
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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/ra_hir_def/src/child_by_source.rs b/crates/ra_hir_def/src/child_by_source.rs index a3574a9db..821549bd5 100644 --- a/crates/ra_hir_def/src/child_by_source.rs +++ b/crates/ra_hir_def/src/child_by_source.rs | |||
@@ -98,6 +98,11 @@ impl ChildBySource for ModuleId { | |||
98 | } | 98 | } |
99 | } | 99 | } |
100 | 100 | ||
101 | for &impl_ in crate_def_map[self.local_id].impls.iter() { | ||
102 | let src = impl_.lookup(db).source(db); | ||
103 | res[keys::IMPL].insert(src, impl_) | ||
104 | } | ||
105 | |||
101 | res | 106 | res |
102 | } | 107 | } |
103 | } | 108 | } |