Static rustc_lint::builtin::CONFLICTING_REPR_HINTS

source ·
pub static CONFLICTING_REPR_HINTS: &'static Lint
Expand description

The conflicting_repr_hints lint detects repr attributes with conflicting hints.


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



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.