Unverified Commit f6aa1cb4 authored by bors[bot]'s avatar bors[bot] Committed by GitHub
Browse files

Merge #38



38: Remove panic_info_message feature r=stlankes a=mkroening
Co-authored-by: Martin Kröning's avatarMartin Kröning <mkroening@posteo.net>
parents 5840dc78 186c3e20
Pipeline #567609 passed with stages
in 1 minute and 55 seconds
......@@ -8,7 +8,6 @@
#![feature(alloc_error_handler)]
#![feature(asm)]
#![cfg_attr(target_arch = "aarch64", feature(global_asm))]
#![feature(panic_info_message)]
#![allow(incomplete_features)]
#![feature(specialization)]
#![no_std]
......
......@@ -12,17 +12,7 @@ use core::panic::PanicInfo;
#[panic_handler]
fn panic(info: &PanicInfo<'_>) -> ! {
loaderlog!("PANIC: ");
if let Some(location) = info.location() {
loaderlog!("{}:{}: ", location.file(), location.line());
}
if let Some(message) = info.message() {
loaderlog!("{}", message);
}
loaderlog!("\n");
loaderlog!("{}", info);
loop {}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment