From 338823f73aefbf7957b928ad76fc5f55cc43df9c Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Tue, 23 Feb 2021 17:56:16 +0100 Subject: is_visible_from_def_map: handle block expressions --- 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 6bd41bc08..9996a0807 100644 --- a/crates/hir_def/src/nameres/collector.rs +++ b/crates/hir_def/src/nameres/collector.rs @@ -608,7 +608,7 @@ impl DefCollector<'_> { ( n, res.filter_visibility(|v| { - v.is_visible_from_def_map(&self.def_map, module_id) + v.is_visible_from_def_map(self.db, &self.def_map, module_id) }), ) }) @@ -761,7 +761,7 @@ impl DefCollector<'_> { .filter(|(glob_importing_module, _)| { // we know all resolutions have the same visibility (`vis`), so we // just need to check that once - vis.is_visible_from_def_map(&self.def_map, *glob_importing_module) + vis.is_visible_from_def_map(self.db, &self.def_map, *glob_importing_module) }) .cloned() .collect::>(); -- cgit v1.2.3