diff options
author | Aleksey Kladov <[email protected]> | 2020-07-17 09:52:18 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-07-17 09:52:18 +0100 |
commit | f88a737a439f7801b7521c66c124ea5a44736e13 (patch) | |
tree | 02010047cd9d144c73f0c90a6d47ac8021b43d0a /crates/ra_hir_ty/src/lib.rs | |
parent | 7e932f33391bd78a43a06d275a4d2f93fe3d7e8d (diff) |
Mismatched arg count works for lambdas
Diffstat (limited to 'crates/ra_hir_ty/src/lib.rs')
-rw-r--r-- | crates/ra_hir_ty/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_ty/src/lib.rs b/crates/ra_hir_ty/src/lib.rs index 0ef5ca78f..1f6626c46 100644 --- a/crates/ra_hir_ty/src/lib.rs +++ b/crates/ra_hir_ty/src/lib.rs | |||
@@ -807,7 +807,7 @@ impl Ty { | |||
807 | } | 807 | } |
808 | } | 808 | } |
809 | 809 | ||
810 | fn callable_sig(&self, db: &dyn HirDatabase) -> Option<FnSig> { | 810 | pub(crate) fn callable_sig(&self, db: &dyn HirDatabase) -> Option<FnSig> { |
811 | match self { | 811 | match self { |
812 | Ty::Apply(a_ty) => match a_ty.ctor { | 812 | Ty::Apply(a_ty) => match a_ty.ctor { |
813 | TypeCtor::FnPtr { is_varargs, .. } => { | 813 | TypeCtor::FnPtr { is_varargs, .. } => { |