From a430549aa6cb78e3a6c9258305b348743c4d7449 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Tue, 9 Mar 2021 18:27:16 +0100 Subject: Stop using `ContainerId` in `AssocContainerId` --- crates/hir_def/src/nameres/collector.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 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 3bb69d935..5bf2ba721 100644 --- a/crates/hir_def/src/nameres/collector.rs +++ b/crates/hir_def/src/nameres/collector.rs @@ -1121,7 +1121,7 @@ impl ModCollector<'_, '_> { def = Some(DefData { id: FunctionLoc { - container: container.into(), + container: module.into(), id: ItemTreeId::new(self.file_id, id), } .intern(self.def_collector.db) @@ -1188,7 +1188,7 @@ impl ModCollector<'_, '_> { if let Some(name) = &it.name { def = Some(DefData { id: ConstLoc { - container: container.into(), + container: module.into(), id: ItemTreeId::new(self.file_id, id), } .intern(self.def_collector.db) @@ -1228,7 +1228,7 @@ impl ModCollector<'_, '_> { def = Some(DefData { id: TypeAliasLoc { - container: container.into(), + container: module.into(), id: ItemTreeId::new(self.file_id, id), } .intern(self.def_collector.db) -- cgit v1.2.3