Skip to content

Commit

Permalink
update oom handler to new rustc nightly version
Browse files Browse the repository at this point in the history
  • Loading branch information
laizy committed Nov 11, 2022
1 parent bb8d531 commit 2d12c95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ontio-std/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#![feature(exclusive_range_pattern)]
#![feature(proc_macro_hygiene)]
#![feature(panic_info_message)]
#![feature(alloc_error_handler)]

//#![feature(trace_macros)]

Expand Down Expand Up @@ -45,7 +46,7 @@ cfg_if::cfg_if! {
extern "C" fn eh_personality() {}

/// Overrides the default oom
#[lang = "oom"]
#[alloc_error_handler]
#[no_mangle]
pub fn oom(_: core::alloc::Layout) -> ! {
core::intrinsics::abort()
Expand Down

0 comments on commit 2d12c95

Please sign in to comment.