aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_ty
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_ty')
-rw-r--r--crates/ra_hir_ty/src/method_resolution.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_ty/src/method_resolution.rs b/crates/ra_hir_ty/src/method_resolution.rs
index 79c5adf0f..fb4b30a13 100644
--- a/crates/ra_hir_ty/src/method_resolution.rs
+++ b/crates/ra_hir_ty/src/method_resolution.rs
@@ -640,7 +640,7 @@ fn is_valid_candidate(
640 } 640 }
641 } 641 }
642 if let Some(receiver_ty) = receiver_ty { 642 if let Some(receiver_ty) = receiver_ty {
643 if data.self_param.is_none() { 643 if !data.has_self_param {
644 return false; 644 return false;
645 } 645 }
646 let transformed_receiver_ty = match transform_receiver_ty(db, m, self_ty) { 646 let transformed_receiver_ty = match transform_receiver_ty(db, m, self_ty) {