Skip to content

"Conflicting representations" warning became an error #68428

Closed
@Manishearth

Description

@Manishearth
#[repr(u32)]
#[repr(C)]
enum X {
    A, B, C
}

(playground)

This used to be a warning but now is a hard error. This is a breaking change.

This was introduced in 2c3e5d3#diff-9e711d5c109e022cbb94049be8c4ca17 , cc @Centril

Metadata

Metadata

Assignees

Labels

P-highHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions