Print the PanicInfo on panic

This commit is contained in:
Philipp Oppermann
2019-01-25 13:23:04 +01:00
parent c43d6191c5
commit 6c427e7cee

View File

@@ -14,6 +14,7 @@ pub extern "C" fn _start() -> ! {
/// This function is called on panic.
#[panic_handler]
fn panic(_info: &PanicInfo) -> ! {
fn panic(info: &PanicInfo) -> ! {
println!("{}", info);
loop {}
}