mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Fix case where non FnOnce variables is marked callable
This commit is contained in:
parent
d01e412eb1
commit
08e95a5dc1
2 changed files with 14 additions and 1 deletions
|
@ -1398,7 +1398,7 @@ impl Type {
|
|||
};
|
||||
|
||||
let canonical_ty = Canonical { value: self.ty.value.clone(), kinds: Arc::new([]) };
|
||||
method_resolution::implements_trait(
|
||||
method_resolution::implements_trait_unique(
|
||||
&canonical_ty,
|
||||
db,
|
||||
self.ty.environment.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue