From 5206ef79d2578cb676127d977ff64f191b3b5920 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Mon, 26 Feb 2018 21:55:25 +0100 Subject: [PATCH] examples/panic: add column information --- examples/panic.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }