fix removing debug borrow information when the ref is dropped

This commit is contained in:
Evan Almloff committed 2024-01-23 07:41:46 -06:00
1 parent 6ed5df644e
commit 93adb35cfa
1 file changed
+1 -1
+1 -1
View File
@@ -57,7 +57,7 @@ impl Drop for GenerationalRefBorrowInfo {
self.borrowed_from
.borrowed_at
.write()
.retain(|location| std::ptr::eq(*location, self.borrowed_at as *const _));
.retain(|location| !std::ptr::eq(*location, self.borrowed_at as *const _));
}
}