aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_ty
diff options
context:
space:
mode:
authorPaul Daniel Faria <[email protected]>2020-06-28 21:04:00 +0100
committerPaul Daniel Faria <[email protected]>2020-08-10 13:44:54 +0100
commitc5cc24cb312c70159e63315ea49769b575e8cb65 (patch)
treefc2f5fe712e5776e0356c8e4f09135692a5ccc20 /crates/ra_hir_ty
parentaca3d6c57ec2c668cdb51eca34d6f7bc8fa7412b (diff)
Revert function structs back to using bool to track self param, use first param for self information in syntax highlighting instead
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) {