diff options
author | adamrk <[email protected]> | 2020-06-20 07:13:14 +0100 |
---|---|---|
committer | adamrk <[email protected]> | 2020-06-20 07:26:31 +0100 |
commit | cf870af8073e3a72fdfb1d36b017f0abd7593559 (patch) | |
tree | deeda64f2aeafeaf0e8aed47da226f62f221a4eb /crates/ra_hir_ty/src/infer/expr.rs | |
parent | 3f94a90c7bbc1b3116a7960ae9f25ebe35d68ad0 (diff) |
Switch back callable_sig for known fn types
Diffstat (limited to 'crates/ra_hir_ty/src/infer/expr.rs')
-rw-r--r-- | crates/ra_hir_ty/src/infer/expr.rs | 2 |
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()) |