Merge pull request #57 from paritytech/no-std/panic_handler

no_std `panic_implementation` -> `panic_handler`
This commit is contained in:
Marek Kotewicz 2018-09-17 11:06:40 +02:00 committed by GitHub
commit f565b487c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1,2 +1,2 @@
[workspace]
members = ["ethereum-types", "ethbloom"]
members = ["ethereum-types", "ethbloom", "no-std-tests"]

View File

@ -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();