From c1569cc0078bc9fae97d22d3050fbe90f3976c3f Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sun, 11 Jan 2026 17:25:20 +0000 Subject: [PATCH] Lower extern "rust-cold" to default calling convention The next Cranelift release will support for CallConv::Cold as it was already effectively equivalent to the default calling convention. --- src/abi/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/abi/mod.rs b/src/abi/mod.rs index 09d71f5dd557..94891b632f56 100644 --- a/src/abi/mod.rs +++ b/src/abi/mod.rs @@ -53,8 +53,7 @@ pub(crate) fn conv_to_call_conv( default_call_conv: CallConv, ) -> CallConv { match c { - CanonAbi::Rust | CanonAbi::C => default_call_conv, - CanonAbi::RustCold => CallConv::Cold, + CanonAbi::Rust | CanonAbi::RustCold | CanonAbi::C => default_call_conv, // Functions with this calling convention can only be called from assembly, but it is // possible to declare an `extern "custom"` block, so the backend still needs a calling