Skip to content

"Conflicting representation hints" warning doesn't fire if there are multiple #[repr] attrs #47094

Closed
@hanna-kruppe

Description

@hanna-kruppe

This produces the warning:

#[repr(C,u8)]
enum Foo { A, B }

This doesn't:

#[repr(C)]
#[repr(u8)]
enum Foo { A, B }

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions