Skip to content

Commit 9ed20ad

Browse files
RalfJungworkingjubilee
authored andcommitted
unsupported_calling_conventions: print which ABI this is about
1 parent fa324a8 commit 9ed20ad

File tree

1 file changed

+3
-1
lines changed
  • compiler/rustc_hir_analysis/src/check

1 file changed

+3
-1
lines changed

compiler/rustc_hir_analysis/src/check/check.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ pub fn check_abi(tcx: TyCtxt<'_>, hir_id: hir::HirId, span: Span, abi: ExternAbi
6464
}
6565
AbiMapping::Deprecated(..) => {
6666
tcx.node_span_lint(UNSUPPORTED_CALLING_CONVENTIONS, hir_id, span, |lint| {
67-
lint.primary_message("use of calling convention not supported on this target");
67+
lint.primary_message(format!(
68+
"{abi} is not a supported ABI for the current target"
69+
));
6870
add_abi_diag_help(abi, lint);
6971
});
7072
}

0 commit comments

Comments
 (0)