fix removing debug borrow information when the ref is dropped

This commit is contained in:
Evan Almloff 2024-01-23 07:41:46 -06:00
parent 6ed5df644e
commit 93adb35cfa

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 _));
}
}