aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/method_resolution.rs
diff options
context:
space:
mode:
authorcynecx <[email protected]>2021-03-20 19:35:57 +0000
committercynecx <[email protected]>2021-03-20 19:35:57 +0000
commit42abfa0f885834c3c2bf61a4d0fafaa3f570debd (patch)
tree5c777edf7ce16245d4a14ef86c459af97ce1a118 /crates/hir_ty/src/method_resolution.rs
parent2dc85f739a678682d6b112d2d990802ffa4ffd90 (diff)
hir_ty: add coverage testing for autoderef_visibility_method test
Diffstat (limited to 'crates/hir_ty/src/method_resolution.rs')
-rw-r--r--crates/hir_ty/src/method_resolution.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/hir_ty/src/method_resolution.rs b/crates/hir_ty/src/method_resolution.rs
index 80e7b7b79..f91208068 100644
--- a/crates/hir_ty/src/method_resolution.rs
+++ b/crates/hir_ty/src/method_resolution.rs
@@ -687,6 +687,7 @@ fn is_valid_candidate(
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.fn_visibility(m).is_visible_from(db.upcast(), from_module) {
690 cov_mark::hit!(autoderef_candidate_not_visible);
690 return false; 691 return false;
691 } 692 }
692 } 693 }