When erroring on inadequate alignment, consider reminding reader that packed can lower alignment #110199
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
much like the above, but point out that
#[packed]
makes the struct itself have lower alignmentRationale and extra context
Spawned off of #109745 (comment)
Its not intuitive to many that
#[packed]
will imply a lower#[align]
ment for the whole struct.Other cases
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: