Fix signature of panic_fmt.

This commit is contained in:
whitequark 2018-03-27 08:41:23 +00:00
parent f067d0fee9
commit dce70f352a

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 {}
}