Open
Description
When encountering #[repr = "C"]
, suggest #[repr(C)]
instead of the current #[repr(C, packed, ...)]
. We need to detect specific cases like writing #[repr("packed")]
, where we should suggest #[repr(packed)]
, as otherwise provide a list of all the valid repr
s.
(Follow up to #61140)
Metadata
Metadata
Assignees
Labels
Area: Attributes (`#[…]`, `#![…]`)Area: Messages for errors, warnings, and lintsArea: the `#[repr(stuff)]` attributeArea: Suggestions generated by the compiler applied by `cargo fix`Diagnostics: An error or lint that needs small tweaks.Low priorityRelevant to the compiler team, which will review and decide on the PR/issue.