Fix signature of panic_fmt.

pull/1/head
whitequark 2018-03-27 08:41:23 +00:00
parent f067d0fee9
commit dce70f352a
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ macro_rules! println {
#[no_mangle]
#[lang = "panic_fmt"]
pub fn panic_fmt(args: core::fmt::Arguments, file: &'static str, line: u32) -> ! {
println!("panic at {}:{}: {}", file, line, args);
pub fn panic_fmt(msg: fmt::Arguments, file: &'static str, line: u32, col: u32) -> ! {
println!("panic at {}:{}:{}: {}", file, line, col, msg);
loop {}
}