diff options
author | GrayJack <[email protected]> | 2020-10-26 18:20:33 +0000 |
---|---|---|
committer | GrayJack <[email protected]> | 2020-10-26 18:20:33 +0000 |
commit | 08e95a5dc1035c57f2cfe6f61f0d64280b940b10 (patch) | |
tree | 6a132d4c6520941694d0ed5407038730ce18db45 /crates/hir/src | |
parent | d01e412eb1572676a33ad145f3370a7157dbc9df (diff) |
Fix case where non FnOnce variables is marked callable
Diffstat (limited to 'crates/hir/src')
-rw-r--r-- | crates/hir/src/code_model.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir/src/code_model.rs b/crates/hir/src/code_model.rs index 63c1a8ebf..563145f92 100644 --- a/crates/hir/src/code_model.rs +++ b/crates/hir/src/code_model.rs | |||
@@ -1398,7 +1398,7 @@ impl Type { | |||
1398 | }; | 1398 | }; |
1399 | 1399 | ||
1400 | let canonical_ty = Canonical { value: self.ty.value.clone(), kinds: Arc::new([]) }; | 1400 | let canonical_ty = Canonical { value: self.ty.value.clone(), kinds: Arc::new([]) }; |
1401 | method_resolution::implements_trait( | 1401 | method_resolution::implements_trait_unique( |
1402 | &canonical_ty, | 1402 | &canonical_ty, |
1403 | db, | 1403 | db, |
1404 | self.ty.environment.clone(), | 1404 | self.ty.environment.clone(), |