Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Revert "Fix nightly test compilation issues"
Browse files Browse the repository at this point in the history
This reverts commit 2a2ff03.
  • Loading branch information
KiChjang committed Oct 6, 2021
1 parent 7ea1e60 commit 1a8ecd5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions parachain/test-parachains/halt/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
}

0 comments on commit 1a8ecd5

Please sign in to comment.