Skip to content

Commit c83b082

Browse files
committed
Refactor structs to avoid trait conflicts and suppress missing debug warnings
Signed-off-by: mgiessing <[email protected]>
1 parent ca2b9e3 commit c83b082

File tree

1 file changed

+7
-2
lines changed
  • src/unix/linux_like/linux/gnu/b64/powerpc64

1 file changed

+7
-2
lines changed

src/unix/linux_like/linux/gnu/b64/powerpc64/align.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ s_no_extra_traits! {
44
pub struct max_align_t {
55
priv_: [i64; 4]
66
}
7-
}
87

9-
s! {
8+
#[allow(missing_debug_implementations)]
109
pub struct ucontext_t {
1110
pub uc_flags: ::c_ulong,
1211
pub uc_link: *mut ucontext_t,
@@ -15,6 +14,7 @@ s! {
1514
pub uc_mcontext: mcontext_t,
1615
}
1716

17+
#[allow(missing_debug_implementations)]
1818
pub struct pt_regs {
1919
pub gpr: [::c_ulong; 32],
2020
pub nip: ::c_ulong,
@@ -31,6 +31,7 @@ s! {
3131
pub result: ::c_ulong,
3232
}
3333

34+
#[allow(missing_debug_implementations)]
3435
#[repr(align(16))]
3536
pub struct mcontext_t {
3637
__glibc_reserved: [::c_ulong; 4],
@@ -45,6 +46,7 @@ s! {
4546
pub vmx_reserve: [::c_long; 69], // # define __NVRREG 34 (34*2+1)
4647
}
4748

49+
#[allow(missing_debug_implementations)]
4850
#[repr(align(16))]
4951
pub struct vrregset_t {
5052
pub vrregs: [[::c_uint; 4]; 32],
@@ -53,6 +55,7 @@ s! {
5355
__pad: [::c_uint; 3],
5456
}
5557

58+
#[allow(missing_debug_implementations)]
5659
#[repr(align(16))]
5760
pub struct vscr_t {
5861
#[cfg(target_endian = "big")]
@@ -65,7 +68,9 @@ s! {
6568
#[cfg(target_endian = "little")]
6669
__pad: [::c_uint; 3],
6770
}
71+
}
6872

73+
s! {
6974
#[repr(align(8))]
7075
pub struct clone_args {
7176
pub flags: ::c_ulonglong,

0 commit comments

Comments
 (0)