about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src
diff options
context:
space:
mode:
authorTamme Dittrich <tamme@tweedegolf.com>2024-10-14 08:07:41 +0200
committerTamme Dittrich <tamme@tweedegolf.com>2024-10-14 10:02:33 +0200
commitb6b6c12819bbffca3aa75298afb79cf1a70e0312 (patch)
treefb59b107cb8ae967296c9c5be5f2b3245f1a80ce /compiler/rustc_hir_analysis/src
parentf6648f252a05a0a46c865d7ec836b46290613bf9 (diff)
downloadrust-b6b6c12819bbffca3aa75298afb79cf1a70e0312.tar.gz
rust-b6b6c12819bbffca3aa75298afb79cf1a70e0312.zip
Update lint message for ABI not supported
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
-rw-r--r--compiler/rustc_hir_analysis/src/check/check.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_hir_analysis/src/check/check.rs b/compiler/rustc_hir_analysis/src/check/check.rs
index 4429f6346e8..94da3d4ea84 100644
--- a/compiler/rustc_hir_analysis/src/check/check.rs
+++ b/compiler/rustc_hir_analysis/src/check/check.rs
@@ -61,9 +61,9 @@ pub fn check_abi_fn_ptr(tcx: TyCtxt<'_>, hir_id: hir::HirId, span: Span, abi: Ab
         Some(true) => (),
         Some(false) | None => {
             tcx.node_span_lint(UNSUPPORTED_FN_PTR_CALLING_CONVENTIONS, hir_id, span, |lint| {
-                lint.primary_message(
-                    "use of calling convention not supported on this target on function pointer",
-                );
+                lint.primary_message(format!(
+                    "the calling convention {abi} is not supported on this target"
+                ));
             });
         }
     }