From f297f3200ffe3cb921a04c6b4eea944a72207eb4 Mon Sep 17 00:00:00 2001 From: Erik Desjardins Date: Fri, 14 Jul 2023 16:22:29 -0400 Subject: [PATCH] extern-fn-explicit-align test: remove unnecessary derives --- tests/run-make/extern-fn-explicit-align/test.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/run-make/extern-fn-explicit-align/test.rs b/tests/run-make/extern-fn-explicit-align/test.rs index ad06d92ac968..846622de3cd1 100644 --- a/tests/run-make/extern-fn-explicit-align/test.rs +++ b/tests/run-make/extern-fn-explicit-align/test.rs @@ -3,14 +3,12 @@ use std::ffi::{CStr, c_char}; use std::ptr::null_mut; -#[derive(Copy, Clone)] #[repr(C)] pub struct BoolAndU32 { pub a: bool, pub b: u32, } -#[derive(Copy, Clone)] #[repr(C)] #[repr(align(16))] pub struct TwoU64s { @@ -18,13 +16,11 @@ pub struct TwoU64s { pub b: u64, } -#[derive(Copy, Clone)] #[repr(C)] pub struct WrappedU64s { pub a: TwoU64s } -#[derive(Copy, Clone)] #[repr(C)] // Even though requesting align 1 can never change the alignment, it still affects the ABI // on some platforms like i686-windows. @@ -34,7 +30,6 @@ pub struct LowerAlign { pub b: u64, } -#[derive(Copy, Clone)] #[repr(C)] #[repr(packed)] pub struct Packed {