Skip to content

Commit 117b815

Browse files
committed
alloc_error_handler has stabilized
rust-lang/rust#51540
1 parent 28b6f4c commit 117b815

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

Diff for: core/rs/bundle/src/lib.rs

-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![no_std]
22
#![feature(core_intrinsics)]
3-
#![feature(alloc_error_handler)]
43
#![feature(lang_items)]
54

65
extern crate alloc;
@@ -23,11 +22,6 @@ fn panic(_info: &PanicInfo) -> ! {
2322
core::intrinsics::abort()
2423
}
2524

26-
#[alloc_error_handler]
27-
fn oom(_: Layout) -> ! {
28-
core::intrinsics::abort()
29-
}
30-
3125
#[cfg(not(target_family = "wasm"))]
3226
#[lang = "eh_personality"]
3327
extern "C" fn eh_personality() {}

0 commit comments

Comments
 (0)