Skip to content

Commit

Permalink
Use stable way of aborting (#1353)
Browse files Browse the repository at this point in the history
* Use stable way of aborting

* Trigger CI
  • Loading branch information
athei authored Aug 15, 2022
1 parent c773653 commit cb4ce47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/allocator/src/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@

#[alloc_error_handler]
fn oom(_: core::alloc::Layout) -> ! {
core::intrinsics::abort()
core::arch::wasm32::unreachable()
}
2 changes: 1 addition & 1 deletion crates/allocator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//! full-featured `wee_alloc` allocator by activating the `wee-alloc` crate feature.
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(not(feature = "std"), feature(alloc_error_handler, core_intrinsics))]
#![cfg_attr(not(feature = "std"), feature(alloc_error_handler))]

// We use `wee_alloc` as the global allocator since it is optimized for binary file size
// so that contracts compiled with it as allocator do not grow too much in size.
Expand Down

0 comments on commit cb4ce47

Please # to comment.