mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
a964a92277
Don't use Immediate::offset to transmute pointers to integers This applies the relatively new `assert_matches_abi` check in the `offset` operation on immediates, which makes sure that if offsets are used to alter the layout (which is possible because the field layout is arbitrarily picked by the caller), this is not done in a way that breaks the invariant of the `Immediate` type. This leads to ICEs in a GVN mir-opt test, so the second commit fixes GVN. Fixes https://github.com/rust-lang/rust/issues/131064. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |