diff options
author | Aleksey Kladov <[email protected]> | 2019-12-22 14:49:39 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-12-22 14:52:35 +0000 |
commit | baee74618524ad75819163d701ff9e6fe9883e95 (patch) | |
tree | c4280ec5ca8c0560f65884384c0537adfe825b22 /crates/ra_hir_def/src/body/lower.rs | |
parent | 6c3ddcfa501060cff3a7f81c179f712ef072c808 (diff) |
Share impl Scope between modules and blocks
Diffstat (limited to 'crates/ra_hir_def/src/body/lower.rs')
-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 be5d17d85..754924050 100644 --- a/crates/ra_hir_def/src/body/lower.rs +++ b/crates/ra_hir_def/src/body/lower.rs | |||
@@ -46,7 +46,7 @@ pub(super) fn lower( | |||
46 | pats: Arena::default(), | 46 | pats: Arena::default(), |
47 | params: Vec::new(), | 47 | params: Vec::new(), |
48 | body_expr: ExprId::dummy(), | 48 | body_expr: ExprId::dummy(), |
49 | defs: Vec::new(), | 49 | item_scope: Default::default(), |
50 | }, | 50 | }, |
51 | } | 51 | } |
52 | .collect(params, body) | 52 | .collect(params, body) |
@@ -532,7 +532,7 @@ where | |||
532 | | ast::ModuleItem::ExternCrateItem(_) | 532 | | ast::ModuleItem::ExternCrateItem(_) |
533 | | ast::ModuleItem::Module(_) => continue, | 533 | | ast::ModuleItem::Module(_) => continue, |
534 | }; | 534 | }; |
535 | self.body.defs.push(def) | 535 | self.body.item_scope.define_def(def) |
536 | } | 536 | } |
537 | } | 537 | } |
538 | 538 | ||