diff options
author | Aleksey Kladov <[email protected]> | 2019-12-20 14:58:20 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-12-20 15:52:02 +0000 |
commit | 1b8ce5b37b597679796b3ebc57afd55af49449b0 (patch) | |
tree | 25851606a456296568234cd3b4f9a81ba3921a14 /crates/ra_hir/src | |
parent | 030e540ad19046e2037981ec8e15a6800b86bbe9 (diff) |
Move impls to ItemScope
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r-- | crates/ra_hir/src/code_model.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs index ecf883272..fca3a2950 100644 --- a/crates/ra_hir/src/code_model.rs +++ b/crates/ra_hir/src/code_model.rs | |||
@@ -221,7 +221,7 @@ impl Module { | |||
221 | 221 | ||
222 | pub fn impl_blocks(self, db: &impl DefDatabase) -> Vec<ImplBlock> { | 222 | pub fn impl_blocks(self, db: &impl DefDatabase) -> Vec<ImplBlock> { |
223 | let def_map = db.crate_def_map(self.id.krate); | 223 | let def_map = db.crate_def_map(self.id.krate); |
224 | def_map[self.id.local_id].impls.iter().copied().map(ImplBlock::from).collect() | 224 | def_map[self.id.local_id].scope.impls().map(ImplBlock::from).collect() |
225 | } | 225 | } |
226 | 226 | ||
227 | pub(crate) fn with_module_id(self, module_id: LocalModuleId) -> Module { | 227 | pub(crate) fn with_module_id(self, module_id: LocalModuleId) -> Module { |