aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty.rs
diff options
context:
space:
mode:
authorPhil Ellison <[email protected]>2019-08-11 11:40:08 +0100
committerAleksey Kladov <[email protected]>2019-08-25 10:55:55 +0100
commitbacb938ab096e3e2885e7bbb5e2cdbebe53292ea (patch)
tree8d2b95f60e06e8a57a84c3d128397433c0a99716 /crates/ra_hir/src/ty.rs
parentd00a285fa757307bbe0f8dac9e49ac247cf9dab1 (diff)
Add type_mismatches to InferenceResult and use this in ok-wrapping code fix
Diffstat (limited to 'crates/ra_hir/src/ty.rs')
-rw-r--r--crates/ra_hir/src/ty.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/ty.rs b/crates/ra_hir/src/ty.rs
index 0efd94cef..b54c80318 100644
--- a/crates/ra_hir/src/ty.rs
+++ b/crates/ra_hir/src/ty.rs
@@ -516,7 +516,7 @@ impl Ty {
516 } 516 }
517 } 517 }
518 518
519 pub fn callable_sig(&self, db: &impl HirDatabase) -> Option<FnSig> { 519 fn callable_sig(&self, db: &impl HirDatabase) -> Option<FnSig> {
520 match self { 520 match self {
521 Ty::Apply(a_ty) => match a_ty.ctor { 521 Ty::Apply(a_ty) => match a_ty.ctor {
522 TypeCtor::FnPtr { .. } => Some(FnSig::from_fn_ptr_substs(&a_ty.parameters)), 522 TypeCtor::FnPtr { .. } => Some(FnSig::from_fn_ptr_substs(&a_ty.parameters)),