Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/infer/closure/analysis.rs')
-rw-r--r--crates/hir-ty/src/infer/closure/analysis.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/hir-ty/src/infer/closure/analysis.rs b/crates/hir-ty/src/infer/closure/analysis.rs
index 979551f316..bd88644a3c 100644
--- a/crates/hir-ty/src/infer/closure/analysis.rs
+++ b/crates/hir-ty/src/infer/closure/analysis.rs
@@ -195,7 +195,7 @@ type InferredCaptureInformation = Vec<(Place, CaptureInfo)>;
impl<'a, 'db> InferenceContext<'a, 'db> {
pub(crate) fn closure_analyze(&mut self) {
- let upvars = crate::upvars::upvars_mentioned(self.db, self.owner)
+ let upvars = crate::upvars::upvars_mentioned(self.db, self.store_owner)
.unwrap_or(const { &FxHashMap::with_hasher(FxBuildHasher) });
for root_expr in self.store.expr_roots() {
self.analyze_closures_in_expr(root_expr, upvars);
@@ -329,7 +329,8 @@ impl<'a, 'db> InferenceContext<'a, 'db> {
let Expr::Path(path) = &self.store[init] else {
panic!();
};
- let update_guard = self.resolver.update_to_inner_scope(self.db, self.owner, init);
+ let update_guard =
+ self.resolver.update_to_inner_scope(self.db, self.store_owner, init);
let Some(ValueNs::LocalBinding(local_id)) =
self.resolver.resolve_path_in_value_ns_fully(
self.db,