aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/method_resolution.rs
diff options
context:
space:
mode:
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 }