diff options
author | Jonas Schievink <[email protected]> | 2021-02-23 16:56:16 +0000 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2021-02-23 16:56:16 +0000 |
commit | 338823f73aefbf7957b928ad76fc5f55cc43df9c (patch) | |
tree | 94c3b47b3c8c3bdeb7b52c81825907a33134b67d /crates/hir_def/src/nameres | |
parent | cf456d72dbdc44dfde9b79b632ee952ea161d5c4 (diff) |
is_visible_from_def_map: handle block expressions
Diffstat (limited to 'crates/hir_def/src/nameres')
-rw-r--r-- | crates/hir_def/src/nameres/collector.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<'_> { | |||
608 | ( | 608 | ( |
609 | n, | 609 | n, |
610 | res.filter_visibility(|v| { | 610 | res.filter_visibility(|v| { |
611 | v.is_visible_from_def_map(&self.def_map, module_id) | 611 | v.is_visible_from_def_map(self.db, &self.def_map, module_id) |
612 | }), | 612 | }), |
613 | ) | 613 | ) |
614 | }) | 614 | }) |
@@ -761,7 +761,7 @@ impl DefCollector<'_> { | |||
761 | .filter(|(glob_importing_module, _)| { | 761 | .filter(|(glob_importing_module, _)| { |
762 | // we know all resolutions have the same visibility (`vis`), so we | 762 | // we know all resolutions have the same visibility (`vis`), so we |
763 | // just need to check that once | 763 | // just need to check that once |
764 | vis.is_visible_from_def_map(&self.def_map, *glob_importing_module) | 764 | vis.is_visible_from_def_map(self.db, &self.def_map, *glob_importing_module) |
765 | }) | 765 | }) |
766 | .cloned() | 766 | .cloned() |
767 | .collect::<Vec<_>>(); | 767 | .collect::<Vec<_>>(); |