Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/infer/coerce.rs')
-rw-r--r--crates/hir-ty/src/infer/coerce.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/hir-ty/src/infer/coerce.rs b/crates/hir-ty/src/infer/coerce.rs
index 1c355c2065..ddff23e840 100644
--- a/crates/hir-ty/src/infer/coerce.rs
+++ b/crates/hir-ty/src/infer/coerce.rs
@@ -1601,7 +1601,7 @@ fn coerce<'db>(
}
fn is_capturing_closure(db: &dyn HirDatabase, closure: InternedClosureId) -> bool {
- let InternedClosure { owner, expr } = closure.loc(db);
+ let InternedClosure { owner, expr, .. } = closure.loc(db);
upvars_mentioned(db, owner)
.is_some_and(|upvars| upvars.get(&expr).is_some_and(|upvars| !upvars.is_empty()))
}