Skip to content

Structs which are both packed and aligned fail to compile #75

Closed
@TheDan64

Description

@TheDan64

For example, the linux headers have this struct:

struct xregs_state {
    struct fxregs_state i387;
    struct xstate_header header;
    u8 extended_state_area[0];
} __attribute__ ((packed, aligned(64)));

Which will fail to compile when translated due to being #[repr(C, packed, align(64)] but a struct cannot be packed and aligned in rust. This is blocked on rust-lang/rust#59154

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedCannot be supported without external support firstbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions