aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/body
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_def/src/body')
-rw-r--r--crates/ra_hir_def/src/body/lower.rs4
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