diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-12-22 14:57:34 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-22 14:57:34 +0000 |
commit | 78f7683b9a1c6192b4828ceedb14ed498b241263 (patch) | |
tree | c4280ec5ca8c0560f65884384c0537adfe825b22 /crates/ra_hir_def/src/body | |
parent | 2d003b6378edc84be42abe98c377ec0ec2bf4ae9 (diff) | |
parent | baee74618524ad75819163d701ff9e6fe9883e95 (diff) |
Merge #2646
2646: Share impl Scope between modules and blocks r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
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 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 | ||