Closed MichaReiser closed 3 months ago
Name | Link |
---|---|
Latest commit | 354dc0eff17c712636e67910065b9b1415cd6f14 |
Latest deploy log | https://app.netlify.com/sites/salsa-rs/deploys/66a51f2a77f0680008102189 |
@nikomatsakis do you think we could merge this to mitigate the immediate panic. I know you're working on a more long-term fix, but it would unblock some short-term usage and benchmarks.
Working on https://github.com/salsa-rs/salsa/pull/529 I ran into the issue that the assertion in
DbGuard
asserting that the DB is unchanged consistently fails.The underlying problem is that
NonNull::eq
not only compares the pointer but also the metadata which is unreliable for trait object pointersThis PR changes the assertion to use
std::ptr::addr_eq
which only compares the address without the metadata.Fixes https://github.com/salsa-rs/salsa/issues/536