about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/messages.ftl
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-09-02 11:45:59 +0200
committerRalf Jung <post@ralfj.de>2024-11-04 22:56:47 +0100
commitffad9aac27ff8a78f5d751bf88250470e2e9d790 (patch)
tree32e348977a254c1e5cc14310bbcef11c0bfa2eb9 /compiler/rustc_codegen_ssa/messages.ftl
parent2dece5bb62f234f5622a08289c5a3d1555cd7843 (diff)
downloadrust-ffad9aac27ff8a78f5d751bf88250470e2e9d790.tar.gz
rust-ffad9aac27ff8a78f5d751bf88250470e2e9d790.zip
mark some target features as 'forbidden' so they cannot be (un)set
For now, this is just a warning, but should become a hard error in the future
Diffstat (limited to 'compiler/rustc_codegen_ssa/messages.ftl')
-rw-r--r--compiler/rustc_codegen_ssa/messages.ftl3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/messages.ftl b/compiler/rustc_codegen_ssa/messages.ftl
index d07274920fe..bb74698a060 100644
--- a/compiler/rustc_codegen_ssa/messages.ftl
+++ b/compiler/rustc_codegen_ssa/messages.ftl
@@ -58,6 +58,9 @@ codegen_ssa_failed_to_write = failed to write {$path}: {$error}
 
 codegen_ssa_field_associated_value_expected = associated value expected for `{$name}`
 
+codegen_ssa_forbidden_target_feature_attr =
+    target feature `{$feature}` cannot be toggled with `#[target_feature]`: {$reason}
+
 codegen_ssa_ignoring_emit_path = ignoring emit path because multiple .{$extension} files were produced
 
 codegen_ssa_ignoring_output = ignoring -o because multiple .{$extension} files were produced