aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/ty')
-rw-r--r--crates/ra_hir/src/ty/infer.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_hir/src/ty/infer.rs b/crates/ra_hir/src/ty/infer.rs
index 9228dd314..f47f4c5de 100644
--- a/crates/ra_hir/src/ty/infer.rs
+++ b/crates/ra_hir/src/ty/infer.rs
@@ -895,8 +895,7 @@ impl<'a, D: HirDatabase> InferenceContext<'a, D> {
895 } 895 }
896 None => (receiver_ty, Ty::Unknown, None), 896 None => (receiver_ty, Ty::Unknown, None),
897 }; 897 };
898 let substs = 898 let substs = self.substs_for_method_call(def_generics, generic_args, &derefed_receiver_ty);
899 self.substs_for_method_call(def_generics.clone(), generic_args, &derefed_receiver_ty);
900 let method_ty = method_ty.apply_substs(substs); 899 let method_ty = method_ty.apply_substs(substs);
901 let method_ty = self.insert_type_vars(method_ty); 900 let method_ty = self.insert_type_vars(method_ty);
902 self.register_obligations_for_call(&method_ty); 901 self.register_obligations_for_call(&method_ty);