diff options
author | Aleksey Kladov <[email protected]> | 2019-12-20 11:07:23 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-12-20 11:07:23 +0000 |
commit | 94ad07af4bef6a70602e315bf315c6fce95618dd (patch) | |
tree | 2e3ab7e72f26a2dd1024479d5146fb8f7d2c2c73 /crates/ra_hir_def/src/body | |
parent | 8fc20b65035d93bcc1b3a89127916bd165a8d938 (diff) |
Introduce `ContainerId`
Diffstat (limited to 'crates/ra_hir_def/src/body')
-rw-r--r-- | crates/ra_hir_def/src/body/lower.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir_def/src/body/lower.rs b/crates/ra_hir_def/src/body/lower.rs index afd5231cc..0103a1aab 100644 --- a/crates/ra_hir_def/src/body/lower.rs +++ b/crates/ra_hir_def/src/body/lower.rs | |||
@@ -25,7 +25,7 @@ use crate::{ | |||
25 | path::GenericArgs, | 25 | path::GenericArgs, |
26 | path::Path, | 26 | path::Path, |
27 | type_ref::{Mutability, TypeRef}, | 27 | type_ref::{Mutability, TypeRef}, |
28 | AssocContainerId, DefWithBodyId, FunctionLoc, Intern, | 28 | ContainerId, DefWithBodyId, FunctionLoc, Intern, |
29 | }; | 29 | }; |
30 | 30 | ||
31 | pub(super) fn lower( | 31 | pub(super) fn lower( |
@@ -490,7 +490,7 @@ where | |||
490 | } | 490 | } |
491 | 491 | ||
492 | fn collect_block_items(&mut self, block: &ast::Block) { | 492 | fn collect_block_items(&mut self, block: &ast::Block) { |
493 | let container = AssocContainerId::DefWithBodyId(self.def); | 493 | let container = ContainerId::DefWithBodyId(self.def).into(); |
494 | for item in block.items() { | 494 | for item in block.items() { |
495 | match item { | 495 | match item { |
496 | ast::ModuleItem::FnDef(def) => { | 496 | ast::ModuleItem::FnDef(def) => { |