From e58572bc24426c9bb7ca14072196cbc353a16001 Mon Sep 17 00:00:00 2001 From: "Eddy (Eduard) Stefes" Date: Tue, 18 Nov 2025 11:39:00 +0100 Subject: [PATCH] disable the fragment_in_dst_padding_gets_overwritten test on s390x on s390x 128bit types have a smaller alignment then on x86[^1]. This leads to smaller structs and therefore the write_unaligned will write outside of the structs boundary. For now disable the tests on s390x. [^2] [^1]: s390x ELF ABI Table 1.1, Page 12 https://github.com/IBM/s390x-abi [^2]: https://github.com/rust-lang/rust/pull/149056#issuecomment-3547543222 --- tests/ui/consts/const-eval/ptr_fragments.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/ui/consts/const-eval/ptr_fragments.rs b/tests/ui/consts/const-eval/ptr_fragments.rs index c251eea8add54..5d3696036f215 100644 --- a/tests/ui/consts/const-eval/ptr_fragments.rs +++ b/tests/ui/consts/const-eval/ptr_fragments.rs @@ -68,6 +68,7 @@ const _PARTIAL_OVERWRITE: () = { }; #[allow(dead_code)] +#[cfg(not(target_arch = "s390x"))] fn fragment_in_dst_padding_gets_overwritten() { #[repr(C)] struct Pair {