about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/check/check.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2025-06-13 17:50:51 +0200
committerJubilee Young <workingjubilee@gmail.com>2025-06-23 09:40:00 -0700
commit7c6b50cd5be12fcf3cb97f1cd041f1f4d7fb242f (patch)
tree2731f9e7f0501e360e81f5fcc0eff54418d14ba5 /compiler/rustc_hir_analysis/src/check/check.rs
parent267ecd132bbafc2651bfa69cd8bdb958d677132b (diff)
downloadrust-7c6b50cd5be12fcf3cb97f1cd041f1f4d7fb242f.tar.gz
rust-7c6b50cd5be12fcf3cb97f1cd041f1f4d7fb242f.zip
unsupported_calling_conventions: print which ABI this is about
Diffstat (limited to 'compiler/rustc_hir_analysis/src/check/check.rs')
-rw-r--r--compiler/rustc_hir_analysis/src/check/check.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/check/check.rs b/compiler/rustc_hir_analysis/src/check/check.rs
index 0bdccb02a71..485dd1d2204 100644
--- a/compiler/rustc_hir_analysis/src/check/check.rs
+++ b/compiler/rustc_hir_analysis/src/check/check.rs
@@ -64,7 +64,9 @@ pub fn check_abi(tcx: TyCtxt<'_>, hir_id: hir::HirId, span: Span, abi: ExternAbi
         }
         AbiMapping::Deprecated(..) => {
             tcx.node_span_lint(UNSUPPORTED_CALLING_CONVENTIONS, hir_id, span, |lint| {
-                lint.primary_message("use of calling convention not supported on this target");
+                lint.primary_message(format!(
+                    "{abi} is not a supported ABI for the current target"
+                ));
                 add_abi_diag_help(abi, lint);
             });
         }