fix removing debug borrow information when the ref is dropped
This commit is contained in:
1 parent
6ed5df644e
commit
93adb35cfa
1 file changed
+1
-1
@@ -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 _));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user