aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/method_resolution.rs
diff options
context:
space:
mode:
authorcynecx <[email protected]>2021-03-24 21:59:59 +0000
committercynecx <[email protected]>2021-03-24 22:00:03 +0000
commit96c88680b2d680f42809f838e79213e087d1fa1c (patch)
tree95f172cd93c206914c891f912f4105ac1b466621 /crates/hir_ty/src/method_resolution.rs
parent42abfa0f885834c3c2bf61a4d0fafaa3f570debd (diff)
hir_def: move visibility queries from hir_ty to hir_def
Diffstat (limited to 'crates/hir_ty/src/method_resolution.rs')
-rw-r--r--crates/hir_ty/src/method_resolution.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir_ty/src/method_resolution.rs b/crates/hir_ty/src/method_resolution.rs
index f91208068..54192ec30 100644
--- a/crates/hir_ty/src/method_resolution.rs
+++ b/crates/hir_ty/src/method_resolution.rs
@@ -686,7 +686,7 @@ fn is_valid_candidate(
686 } 686 }
687 } 687 }
688 if let Some(from_module) = visible_from_module { 688 if let Some(from_module) = visible_from_module {
689 if !db.fn_visibility(m).is_visible_from(db.upcast(), from_module) { 689 if !db.function_visibility(m).is_visible_from(db.upcast(), from_module) {
690 cov_mark::hit!(autoderef_candidate_not_visible); 690 cov_mark::hit!(autoderef_candidate_not_visible);
691 return false; 691 return false;
692 } 692 }