rust/tests/ui/mir/alignment
Bastian Kersting a3e7c699bc 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.
2025-04-25 12:16:40 +00:00
..
addrof_alignment.rs
borrow_aligned_field_projection.rs Extend the alignment check to borrows 2025-04-25 12:16:40 +00:00
borrow_misaligned_field_projection.rs Extend the alignment check to borrows 2025-04-25 12:16:40 +00:00
i686-pc-windows-msvc.rs move strict provenance lints to new feature gate, remove old feature gates 2024-10-21 15:22:17 +01:00
misaligned-constant-gvn.rs Add test. 2024-07-05 22:58:54 +00:00
misaligned_borrow.rs Extend the alignment check to borrows 2025-04-25 12:16:40 +00:00
misaligned_lhs.rs Update test directives for `wasm32-wasip1` 2024-03-11 09:36:35 -07:00
misaligned_mut_borrow.rs Extend the alignment check to borrows 2025-04-25 12:16:40 +00:00
misaligned_rhs.rs Update test directives for `wasm32-wasip1` 2024-03-11 09:36:35 -07:00
packed.rs move strict provenance lints to new feature gate, remove old feature gates 2024-10-21 15:22:17 +01:00
place_without_read.rs
two_pointers.rs Update test directives for `wasm32-wasip1` 2024-03-11 09:36:35 -07:00