diff --git a/examples/panic.rs b/examples/panic.rs index a85f425..8b2bdef 100644 --- a/examples/panic.rs +++ b/examples/panic.rs @@ -29,7 +29,7 @@ fn main() { #[lang = "panic_fmt"] #[no_mangle] -unsafe extern "C" fn rust_begin_unwind( +pub unsafe extern "C" fn rust_begin_unwind( args: core::fmt::Arguments, file: &'static str, line: u32, @@ -40,7 +40,7 @@ unsafe extern "C" fn rust_begin_unwind( .and_then(|_| { stdout .write_fmt(args) - .and_then(|_| writeln!(stdout, "', {}:{}", file, line)) + .and_then(|_| writeln!(stdout, "', {}:{}:{}", file, line, col)) }) .ok(); }