about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/messages.ftl
diff options
context:
space:
mode:
authorBastian Kersting <bkersting@google.com>2025-03-03 13:28:41 +0000
committerBastian Kersting <bkersting@google.com>2025-04-25 12:16:40 +0000
commita3e7c699bc430e29e3035d36e4b3f9682c86c56e (patch)
tree2dd704fca4e490f802134c00fcdcae8022c5bc7a /compiler/rustc_mir_transform/messages.ftl
parent862156d6f25ccb0d915d2a0c8ebab520d05e4f72 (diff)
downloadrust-a3e7c699bc430e29e3035d36e4b3f9682c86c56e.tar.gz
rust-a3e7c699bc430e29e3035d36e4b3f9682c86c56e.zip
Extend the alignment check to borrows
The current alignment check does not include checks for creating
misaligned references from raw pointers, which is now added in this
patch.

When inserting the check we need to be careful with references to
field projections (e.g. `&(*ptr).a`), in which case the resulting
reference must be aligned according to the field type and not the
type of the pointer.
Diffstat (limited to 'compiler/rustc_mir_transform/messages.ftl')
0 files changed, 0 insertions, 0 deletions