better panic formatting

This commit is contained in:
Jack Halford 2018-02-09 18:56:10 +01:00
parent 8f2f89eae6
commit 7429ab83c8

View file

@ -59,12 +59,11 @@ pub extern fn eh_personality() {
#[lang = "panic_fmt"] #[no_mangle]
pub extern fn panic_fmt(
fmt: core::fmt::Arguments,
file: &'static str,
line: u32)
fmt: core::fmt::Arguments, file: &'static str, line: u32)
-> ! {
println!("\n\nPANIC in {} at line {}:", file, line);
println!(" {}", fmt);
println!("PANIC: {}", fmt);
println!("FILE: {}", file);
println!("LINE: {}", line);
loop {}
}