Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/infer.rs')
| -rw-r--r-- | crates/hir-ty/src/infer.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/hir-ty/src/infer.rs b/crates/hir-ty/src/infer.rs index bd00da84ca..4036722baf 100644 --- a/crates/hir-ty/src/infer.rs +++ b/crates/hir-ty/src/infer.rs @@ -410,6 +410,11 @@ pub enum InferenceDiagnostic { expected: usize, #[type_visitable(ignore)] found: usize, + /// True when the call goes through the `Fn`/`FnMut`/`FnOnce` trait + /// (i.e. arguments were bundled into a tuple). Determines whether the + /// diagnostic surface uses E0057 (Fn-trait call) or E0061 (regular call). + #[type_visitable(ignore)] + is_fn_trait_call: bool, }, MismatchedTupleStructPatArgCount { #[type_visitable(ignore)] |