We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a9fd42e + dcc4874 commit 393e46eCopy full SHA for 393e46e
src/abi/mod.rs
@@ -51,6 +51,11 @@ pub(crate) fn conv_to_call_conv(
51
CanonAbi::Rust | CanonAbi::C => default_call_conv,
52
CanonAbi::RustCold => CallConv::Cold,
53
54
+ // Functions with this calling convention can only be called from assembly, but it is
55
+ // possible to declare an `extern "custom"` block, so the backend still needs a calling
56
+ // convention for declaring foreign functions.
57
+ CanonAbi::Custom => default_call_conv,
58
+
59
CanonAbi::X86(x86_call) => match x86_call {
60
X86Call::SysV64 => CallConv::SystemV,
61
X86Call::Win64 => CallConv::WindowsFastcall,
0 commit comments