From 90ac6408baa80fcd7fa28bc98af6046dba8c4bbb Mon Sep 17 00:00:00 2001 From: est31 Date: Tue, 25 Jul 2017 22:10:10 +0200 Subject: Switch to begin_panic again In https://github.com/rust-lang/rust/pull/42938 we made the compiler emit a call to begin_panic_new in order to pass column info to it. Now with stage0 updated (https://github.com/rust-lang/rust/pull/43320), we can safely change begin_panic and start emitting calls for it again. --- src/libstd/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd/macros.rs') diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index 6ad22820a7d..44e8a23d353 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -46,7 +46,7 @@ macro_rules! panic { panic!("explicit panic") }); ($msg:expr) => ({ - $crate::rt::begin_panic_new($msg, { + $crate::rt::begin_panic($msg, { // static requires less code at runtime, more constant data static _FILE_LINE_COL: (&'static str, u32, u32) = (file!(), line!(), column!()); &_FILE_LINE_COL -- cgit 1.4.1-3-g733a5