From 4772cb6b301917820eff62d36e2d6ec359420df3 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 22 Jun 2021 20:56:52 +0300 Subject: minor: clarify naming --- crates/hir_def/src/nameres/collector.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/hir_def/src/nameres') diff --git a/crates/hir_def/src/nameres/collector.rs b/crates/hir_def/src/nameres/collector.rs index 927a7b6e8..634e02205 100644 --- a/crates/hir_def/src/nameres/collector.rs +++ b/crates/hir_def/src/nameres/collector.rs @@ -1506,7 +1506,7 @@ impl ModCollector<'_, '_> { } if let Some(DefData { id, name, visibility, has_constructor }) = def { - self.def_collector.def_map.modules[self.module_id].scope.define_def(id); + self.def_collector.def_map.modules[self.module_id].scope.declare(id); let vis = self .def_collector .def_map @@ -1627,7 +1627,7 @@ impl ModCollector<'_, '_> { modules[self.module_id].children.insert(name.clone(), res); let module = self.def_collector.def_map.module_id(res); let def: ModuleDefId = module.into(); - self.def_collector.def_map.modules[self.module_id].scope.define_def(def); + self.def_collector.def_map.modules[self.module_id].scope.declare(def); self.def_collector.update( self.module_id, &[(Some(name), PerNs::from_def(def, vis, false))], -- cgit v1.2.3