about summary refs log tree commit diff
path: root/compiler/rustc_passes/messages.ftl
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2025-07-14 18:05:45 +0200
committerGitHub <noreply@github.com>2025-07-14 18:05:45 +0200
commit16b3f476583212d093d80fbf24ccf8cd35dc26ba (patch)
treeb7f503def1538fb067016d49d5999da3e9caf097 /compiler/rustc_passes/messages.ftl
parentbbda0c9fb55dcf78b14a00288568d9ce5651fbf7 (diff)
parenta5ab6829c6f5c484dc68fdc7ab86057ad1941643 (diff)
downloadrust-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.ftl4
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