Skip to content

Commit b8b0879

Browse files
committed
Remove custom alloc_error_handler
rust-lang/rust#102318
1 parent 7ff66b2 commit b8b0879

File tree

4 files changed

+0
-8
lines changed

4 files changed

+0
-8
lines changed

basm/src/bin/basm-lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(alloc_error_handler)]
21
#![cfg_attr(not(test), no_builtins)]
32
#![cfg_attr(not(test), no_std)]
43
#![cfg_attr(not(test), no_main)]

basm/src/bin/basm-submit.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(alloc_error_handler)]
21
#![cfg_attr(not(test), no_builtins)]
32
#![cfg_attr(not(test), no_std)]
43
#![cfg_attr(not(test), no_main)]

basm/src/bin/basm.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![feature(alloc_error_handler)]
21
#![cfg_attr(not(test), no_builtins)]
32
#![cfg_attr(not(test), no_std)]
43
#![cfg_attr(not(test), no_main)]

basm/src/bin/lang_items.rs

-5
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ mod runtime {
1818
unsafe { core::hint::unreachable_unchecked() }
1919
}
2020

21-
#[alloc_error_handler]
22-
fn alloc_fail(_: core::alloc::Layout) -> ! {
23-
unsafe { core::hint::unreachable_unchecked() }
24-
}
25-
2621
#[no_mangle]
2722
#[allow(non_snake_case)]
2823
fn _Unwind_Resume() {

0 commit comments

Comments
 (0)