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.
This commit is contained in:
bjorn3 2026-01-11 17:25:20 +00:00
parent 9c369a43ce
commit c1569cc007

View file

@ -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