about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize/messages.ftl
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-02-18 17:17:16 +0100
committerRalf Jung <post@ralfj.de>2025-02-20 12:40:58 +0100
commit83fd16f6258f3ae6fb6c8d6cf06eb4f8c654333e (patch)
tree13201e916be9e6065e1283705468ebbbdead850c /compiler/rustc_monomorphize/messages.ftl
parent79b2360d985d325741e066e7b6070ed465b785df (diff)
downloadrust-83fd16f6258f3ae6fb6c8d6cf06eb4f8c654333e.tar.gz
rust-83fd16f6258f3ae6fb6c8d6cf06eb4f8c654333e.zip
vectorcall ABI: error if sse2 is not available
Diffstat (limited to 'compiler/rustc_monomorphize/messages.ftl')
-rw-r--r--compiler/rustc_monomorphize/messages.ftl14
1 files changed, 14 insertions, 0 deletions
diff --git a/compiler/rustc_monomorphize/messages.ftl b/compiler/rustc_monomorphize/messages.ftl
index a83c18cda0e..bdeab12ab50 100644
--- a/compiler/rustc_monomorphize/messages.ftl
+++ b/compiler/rustc_monomorphize/messages.ftl
@@ -22,6 +22,20 @@ monomorphize_abi_error_unsupported_vector_type =
     *[false] defined
   } here
 
+monomorphize_abi_required_target_feature =
+  this function {$is_call ->
+    [true] call
+    *[false] definition
+  } uses ABI "{$abi}" which requires the `{$required_feature}` target feature, which is not enabled{$is_call ->
+    [true] {" "}in the caller
+    *[false] {""}
+  }
+  .label = function {$is_call ->
+    [true] called
+    *[false] defined
+  } here
+  .help = consider enabling it globally (`-C target-feature=+{$required_feature}`) or locally (`#[target_feature(enable="{$required_feature}")]`)
+
 monomorphize_couldnt_dump_mono_stats =
     unexpected error occurred while dumping monomorphization stats: {$error}