about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-10-07 00:45:41 +0000
committerbors <bors@rust-lang.org>2024-10-07 00:45:41 +0000
commita964a9227787447016894268152bff79ee76a36b (patch)
tree4003d5b01e547a12cd0888e8ff870badedfb7099 /compiler/rustc_parse/src
parent1b3b8e7b0265162853c650ead09905bc3cdaeae9 (diff)
parent7d63efdb8c2d3b9ea25fa2bbb8703168d21483c8 (diff)
downloadrust-a964a9227787447016894268152bff79ee76a36b.tar.gz
rust-a964a9227787447016894268152bff79ee76a36b.zip
Auto merge of #131068 - RalfJung:immediate-offset-sanity-check, r=nnethercote
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.
Diffstat (limited to 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions