Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/infer/callee.rs')
| -rw-r--r-- | crates/hir-ty/src/infer/callee.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/crates/hir-ty/src/infer/callee.rs b/crates/hir-ty/src/infer/callee.rs index a661731e60..e5304582ca 100644 --- a/crates/hir-ty/src/infer/callee.rs +++ b/crates/hir-ty/src/infer/callee.rs @@ -585,13 +585,7 @@ impl<'a, 'db> DeferredCallResolution<'db> { method_callee.args, ); } - None => { - assert!( - ctx.lang_items.FnOnce.is_none(), - "Expected to find a suitable `Fn`/`FnMut`/`FnOnce` implementation for `{:?}`", - self.closure_ty - ) - } + None => {} } } } |