Closed Darksonn closed 2 years ago
FYI, the optimization you do to avoid the bad codegen causes (non-theoretical) LLVM miscompiles -- See https://github.com/rust-lang/rust/pull/96538 for some details. So I don't know if you should keep it.
welp. that's cool.
@thomcc Thanks. We will uses ptr2int2ptr casts for now on non-miri builds then.
This PR replaces all ptr2int2ptr casts with an
wrapping_add
equivalent, making it strict-provenance compatible.