diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-07-14 18:05:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-14 18:05:45 +0200 |
| commit | 16b3f476583212d093d80fbf24ccf8cd35dc26ba (patch) | |
| tree | b7f503def1538fb067016d49d5999da3e9caf097 /compiler/rustc_passes/messages.ftl | |
| parent | bbda0c9fb55dcf78b14a00288568d9ce5651fbf7 (diff) | |
| parent | a5ab6829c6f5c484dc68fdc7ab86057ad1941643 (diff) | |
| download | rust-16b3f476583212d093d80fbf24ccf8cd35dc26ba.tar.gz rust-16b3f476583212d093d80fbf24ccf8cd35dc26ba.zip | |
Rollup merge of #143868 - jdonszelmann:fix-align-on-fields, r=workingjubilee
warn on align on fields to avoid breaking changes r? `@workingjubilee`
Diffstat (limited to 'compiler/rustc_passes/messages.ftl')
| -rw-r--r-- | compiler/rustc_passes/messages.ftl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_passes/messages.ftl b/compiler/rustc_passes/messages.ftl index 0b857b0d693..3418d997b83 100644 --- a/compiler/rustc_passes/messages.ftl +++ b/compiler/rustc_passes/messages.ftl @@ -17,6 +17,10 @@ passes_align_attr_application = `#[align(...)]` should be applied to a function item .label = not a function item +passes_align_on_fields = + attribute should be applied to a function or method + .warn = {-passes_previously_accepted} + passes_align_should_be_repr_align = `#[align(...)]` is not supported on {$item} items .suggestion = use `#[repr(align(...))]` instead |
