Static rustc_lint_defs::builtin::CONFLICTING_REPR_HINTS
source · pub static CONFLICTING_REPR_HINTS: &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.