diff --git a/parachain/test-parachains/halt/src/lib.rs b/parachain/test-parachains/halt/src/lib.rs index 3c1416f3c6e9..0c56cfe6393e 100644 --- a/parachain/test-parachains/halt/src/lib.rs +++ b/parachain/test-parachains/halt/src/lib.rs @@ -39,18 +39,20 @@ pub fn wasm_binary_unwrap() -> &'static [u8] { #[panic_handler] #[no_mangle] pub fn panic(_info: &core::panic::PanicInfo) -> ! { - core::intrinsics::abort() + unsafe { core::intrinsics::abort() } } #[cfg(not(feature = "std"))] #[alloc_error_handler] #[no_mangle] pub fn oom(_: core::alloc::Layout) -> ! { - core::intrinsics::abort(); + unsafe { + core::intrinsics::abort(); + } } #[cfg(not(feature = "std"))] #[no_mangle] -pub extern "C" fn validate_block(_params: *const u8, _len: usize) -> u64 { +pub extern "C" fn validate_block(params: *const u8, len: usize) -> u64 { loop {} }