Merge pull request #57 from paritytech/no-std/panic_handler
no_std `panic_implementation` -> `panic_handler`
This commit is contained in:
commit
f565b487c2
|
@ -1,2 +1,2 @@
|
|||
[workspace]
|
||||
members = ["ethereum-types", "ethbloom"]
|
||||
members = ["ethereum-types", "ethbloom", "no-std-tests"]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#![feature(lang_items, start, panic_implementation)]
|
||||
#![feature(lang_items, start, panic_handler)]
|
||||
#![no_std]
|
||||
|
||||
extern crate libc;
|
||||
|
@ -19,7 +19,7 @@ fn start(_argc: isize, _argv: *const *const u8) -> isize {
|
|||
pub extern "C" fn rust_eh_personality() {}
|
||||
|
||||
#[cfg(not(test))]
|
||||
#[panic_implementation]
|
||||
#[panic_handler]
|
||||
fn panic(_info: &core::panic::PanicInfo) -> ! {
|
||||
unsafe {
|
||||
libc::abort();
|
||||
|
|
Loading…
Reference in New Issue