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.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/hir-ty/src/infer.rs b/crates/hir-ty/src/infer.rs
index c838fcc3a7..a5a82209c6 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)]