Skip to content

Commit

Permalink
Remove custom alloc_error_handler
Browse files Browse the repository at this point in the history
  • Loading branch information
byeongkeunahn committed Jan 24, 2024
1 parent f68b3c3 commit fa181cc
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion basm/src/bin/basm-lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(alloc_error_handler)]
#![cfg_attr(not(test), no_builtins)]
#![cfg_attr(not(test), no_std)]
#![cfg_attr(not(test), no_main)]
Expand Down
1 change: 0 additions & 1 deletion basm/src/bin/basm-submit.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(alloc_error_handler)]
#![cfg_attr(not(test), no_builtins)]
#![cfg_attr(not(test), no_std)]
#![cfg_attr(not(test), no_main)]
Expand Down
1 change: 0 additions & 1 deletion basm/src/bin/basm.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#![feature(alloc_error_handler)]
#![cfg_attr(not(test), no_builtins)]
#![cfg_attr(not(test), no_std)]
#![cfg_attr(not(test), no_main)]
Expand Down
5 changes: 0 additions & 5 deletions basm/src/bin/lang_items.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ mod runtime {
unsafe { core::hint::unreachable_unchecked() }
}

#[alloc_error_handler]
fn alloc_fail(_: core::alloc::Layout) -> ! {
unsafe { core::hint::unreachable_unchecked() }
}

#[no_mangle]
#[allow(non_snake_case)]
fn _Unwind_Resume() {
Expand Down

0 comments on commit fa181cc

Please sign in to comment.