Skip to content

Commit 1d2a23b

Browse files
committed
uefi-std: Use Rust ABI for OOM handler
Fixes: warning: `extern` fn uses type `Layout`, which is not FFI-safe Signed-off-by: Tim Crawford <[email protected]>
1 parent aead334 commit 1d2a23b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/uefi_std/src/rt/panic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub extern fn rust_begin_panic(pi: &::core::panic::PanicInfo) -> ! {
1515

1616
#[lang = "oom"]
1717
#[no_mangle]
18-
pub extern "C" fn rust_oom(layout: ::core::alloc::Layout) -> ! {
18+
pub fn rust_oom(layout: ::core::alloc::Layout) -> ! {
1919
println!(
2020
"SETUP OOM: {} bytes aligned to {} bytes\n",
2121
layout.size(),

0 commit comments

Comments
 (0)