about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/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_llvm/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_llvm/messages.ftl')
-rw-r--r--compiler/rustc_codegen_llvm/messages.ftl5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/messages.ftl b/compiler/rustc_codegen_llvm/messages.ftl
index 0950e4bb26b..63c64269eb8 100644
--- a/compiler/rustc_codegen_llvm/messages.ftl
+++ b/compiler/rustc_codegen_llvm/messages.ftl
@@ -7,6 +7,11 @@ codegen_llvm_dynamic_linking_with_lto =
 
 codegen_llvm_fixed_x18_invalid_arch = the `-Zfixed-x18` flag is not supported on the `{$arch}` architecture
 
+codegen_llvm_forbidden_ctarget_feature =
+    target feature `{$feature}` cannot be toggled with `-Ctarget-feature`: {$reason}
+    .note = this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+codegen_llvm_forbidden_ctarget_feature_issue = for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
+
 codegen_llvm_from_llvm_diag = {$message}
 
 codegen_llvm_from_llvm_optimization_diag = {$filename}:{$line}:{$column} {$pass_name} ({$kind}): {$message}