diff options
Diffstat (limited to 'crates/ra_hir_def/src/nameres')
-rw-r--r-- | crates/ra_hir_def/src/nameres/collector.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir_def/src/nameres/collector.rs b/crates/ra_hir_def/src/nameres/collector.rs index 30771d510..8a22b0585 100644 --- a/crates/ra_hir_def/src/nameres/collector.rs +++ b/crates/ra_hir_def/src/nameres/collector.rs | |||
@@ -378,7 +378,7 @@ where | |||
378 | .resolutions() | 378 | .resolutions() |
379 | // only keep visible names... | 379 | // only keep visible names... |
380 | .map(|(n, res)| { | 380 | .map(|(n, res)| { |
381 | (n, res.filter_visibility(|v| v.visible_from_other_crate())) | 381 | (n, res.filter_visibility(|v| v.is_visible_from_other_crate())) |
382 | }) | 382 | }) |
383 | .filter(|(_, res)| !res.is_none()) | 383 | .filter(|(_, res)| !res.is_none()) |
384 | .collect::<Vec<_>>(); | 384 | .collect::<Vec<_>>(); |
@@ -398,7 +398,7 @@ where | |||
398 | ( | 398 | ( |
399 | n, | 399 | n, |
400 | res.filter_visibility(|v| { | 400 | res.filter_visibility(|v| { |
401 | v.visible_from_def_map(&self.def_map, module_id) | 401 | v.is_visible_from_def_map(&self.def_map, module_id) |
402 | }), | 402 | }), |
403 | ) | 403 | ) |
404 | }) | 404 | }) |
@@ -492,7 +492,7 @@ where | |||
492 | for (glob_importing_module, glob_import_vis) in glob_imports { | 492 | for (glob_importing_module, glob_import_vis) in glob_imports { |
493 | // we know all resolutions have the same visibility (`vis`), so we | 493 | // we know all resolutions have the same visibility (`vis`), so we |
494 | // just need to check that once | 494 | // just need to check that once |
495 | if !vis.visible_from_def_map(&self.def_map, glob_importing_module) { | 495 | if !vis.is_visible_from_def_map(&self.def_map, glob_importing_module) { |
496 | continue; | 496 | continue; |
497 | } | 497 | } |
498 | self.update_recursive(glob_importing_module, resolutions, glob_import_vis, depth + 1); | 498 | self.update_recursive(glob_importing_module, resolutions, glob_import_vis, depth + 1); |