From a9c207dce22340fbf2e31399bccbbafb7bfb2358 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sun, 29 Sep 2019 12:26:13 -0400 Subject: [PATCH] fix tests on 32bit --- tests/run-pass/align_offset.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/run-pass/align_offset.rs b/tests/run-pass/align_offset.rs index 8388089b8f44..736889174839 100644 --- a/tests/run-pass/align_offset.rs +++ b/tests/run-pass/align_offset.rs @@ -56,7 +56,8 @@ fn test_align_to() { } { - let (l, m, r) = unsafe { s.align_to::() }; // requested alignment higher than allocation alignment + #[repr(align(8))] struct Align8(u64); + let (l, m, r) = unsafe { s.align_to::() }; // requested alignment higher than allocation alignment assert_eq!(l.len(), 4*N); assert_eq!(r.len(), 0); assert_eq!(m.len(), 0);