Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-def/src/expr_store.rs')
-rw-r--r--crates/hir-def/src/expr_store.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir-def/src/expr_store.rs b/crates/hir-def/src/expr_store.rs
index edbfd42d13..1ce4c881e7 100644
--- a/crates/hir-def/src/expr_store.rs
+++ b/crates/hir-def/src/expr_store.rs
@@ -474,8 +474,8 @@ impl ExpressionStore {
match expr_only.binding_owners.get(&binding) {
Some(it) => {
// We assign expression ids in a way that outer closures will receive
- // a lower id
- it.into_raw() < relative_to.into_raw()
+ // a higher id (allocated after their body is collected)
+ it.into_raw() > relative_to.into_raw()
}
None => true,
}