rustc_lint::builtin

Static CONFLICTING_REPR_HINTS

pub static CONFLICTING_REPR_HINTS: &'static Lint
Expand description

The conflicting_repr_hints lint detects repr attributes with conflicting hints.

§Example

#[repr(u32, u64)]
enum Foo {
    Variant1,
}

{{produces}}

§Explanation

The compiler incorrectly accepted these conflicting representations in the past. This is a future-incompatible lint to transition this to a hard error in the future. See issue #68585 for more details.

To correct the issue, remove one of the conflicting hints.