Skip to content

Commit f297f32

Browse files
extern-fn-explicit-align test: remove unnecessary derives
1 parent ecf2390 commit f297f32

File tree

1 file changed

+0
-5
lines changed
  • tests/run-make/extern-fn-explicit-align

1 file changed

+0
-5
lines changed

tests/run-make/extern-fn-explicit-align/test.rs

-5
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,24 @@
33
use std::ffi::{CStr, c_char};
44
use std::ptr::null_mut;
55

6-
#[derive(Copy, Clone)]
76
#[repr(C)]
87
pub struct BoolAndU32 {
98
pub a: bool,
109
pub b: u32,
1110
}
1211

13-
#[derive(Copy, Clone)]
1412
#[repr(C)]
1513
#[repr(align(16))]
1614
pub struct TwoU64s {
1715
pub a: u64,
1816
pub b: u64,
1917
}
2018

21-
#[derive(Copy, Clone)]
2219
#[repr(C)]
2320
pub struct WrappedU64s {
2421
pub a: TwoU64s
2522
}
2623

27-
#[derive(Copy, Clone)]
2824
#[repr(C)]
2925
// Even though requesting align 1 can never change the alignment, it still affects the ABI
3026
// on some platforms like i686-windows.
@@ -34,7 +30,6 @@ pub struct LowerAlign {
3430
pub b: u64,
3531
}
3632

37-
#[derive(Copy, Clone)]
3833
#[repr(C)]
3934
#[repr(packed)]
4035
pub struct Packed {

0 commit comments

Comments
 (0)