mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 04:55:22 +03:00
Change repr(packed) struct to repr(C, packed)
`repr(packed)` structs do not have a well-defined layout
This commit is contained in:
@@ -510,7 +510,7 @@ mod tests {
|
||||
use syscalls::{Sysno, syscall};
|
||||
|
||||
#[allow(non_camel_case_types)]
|
||||
#[repr(packed)]
|
||||
#[repr(C, packed)]
|
||||
#[derive(Copy, Clone, Default, Debug, PartialEq)]
|
||||
struct __tilecfg {
|
||||
/// 0 `or` 1
|
||||
|
||||
Reference in New Issue
Block a user