aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_ty/src/infer/expr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_ty/src/infer/expr.rs')
-rw-r--r--crates/ra_hir_ty/src/infer/expr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_ty/src/infer/expr.rs b/crates/ra_hir_ty/src/infer/expr.rs
index bba6daeb9..a23d8abd6 100644
--- a/crates/ra_hir_ty/src/infer/expr.rs
+++ b/crates/ra_hir_ty/src/infer/expr.rs
@@ -768,7 +768,7 @@ impl<'a> InferenceContext<'a> {
768 let method_ty = method_ty.subst(&substs); 768 let method_ty = method_ty.subst(&substs);
769 let method_ty = self.insert_type_vars(method_ty); 769 let method_ty = self.insert_type_vars(method_ty);
770 self.register_obligations_for_call(&method_ty); 770 self.register_obligations_for_call(&method_ty);
771 let (expected_receiver_ty, param_tys, ret_ty) = match self.callable_sig(&method_ty) { 771 let (expected_receiver_ty, param_tys, ret_ty) = match method_ty.callable_sig(self.db) {
772 Some(sig) => { 772 Some(sig) => {
773 if !sig.params().is_empty() { 773 if !sig.params().is_empty() {
774 (sig.params()[0].clone(), sig.params()[1..].to_vec(), sig.ret().clone()) 774 (sig.params()[0].clone(), sig.params()[1..].to_vec(), sig.ret().clone())