-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints
Description
The attribute was fairly recently stabilised in form of #[repr(align(x))]
however the RFC and some searches still refer to the attribute as #[repr(align="x")]
, in which case the compiler emits the following error:
error[E0552]: unrecognized representation hint
--> libcore/../libcore/tests/slice.rs:574:12
|
574 | #[repr(align=8)] struct U64(u64, u64);
| ^^^^^^^
We should detect this case and inform users of the correct way to specify the alignment.
cc #33626
hanna-kruppe
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints