Skip to content
Snippets Groups Projects
Commit ea2e6be7 authored by Stefan Lankes's avatar Stefan Lankes
Browse files

use the new feature "panic_handler" to define a panic handler

parent 37f2a92f
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,6 @@
#![feature(integer_atomics)]
#![feature(lang_items)]
#![feature(linkage)]
#![feature(panic_implementation)]
#![feature(panic_info_message)]
#![feature(specialization)]
#![allow(unused_macros)]
......
......@@ -30,8 +30,7 @@ use arch;
use core::panic::PanicInfo;
// see https://users.rust-lang.org/t/psa-breaking-change-panic-fmt-language-item-removed-in-favor-of-panic-implementation/17875
#[panic_implementation]
#[no_mangle]
#[panic_handler]
fn panic(info: &PanicInfo) -> ! {
print!("[{}][!!!PANIC!!!] ", arch::percore::core_id());
......
......@@ -24,7 +24,6 @@
#![feature(asm)]
#![feature(const_fn)]
#![feature(lang_items)]
#![feature(panic_implementation)]
#![feature(panic_info_message)]
#![feature(specialization)]
#![no_std]
......
......@@ -29,9 +29,7 @@
use arch;
use core::panic::PanicInfo;
// see https://users.rust-lang.org/t/psa-breaking-change-panic-fmt-language-item-removed-in-favor-of-panic-implementation/17875
#[panic_implementation]
#[no_mangle]
#[panic_handler]
fn panic(info: &PanicInfo) -> ! {
loaderlog!("PANIC: ");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment