diff options
| author | Flavio Percoco <flaper87@gmail.com> | 2015-02-25 13:48:53 +0100 |
|---|---|---|
| committer | Flavio Percoco <flaper87@gmail.com> | 2015-02-27 01:48:49 +0100 |
| commit | 9d0d72345df8e9b2b27899f70f0d7b7222524948 (patch) | |
| tree | 67690940e22706a2d575209b6fb6b4d72dd19122 /src/libcore/macros.rs | |
| parent | 880fb89bde126aa43fc348d0b93839d3d18a1f51 (diff) | |
| download | rust-9d0d72345df8e9b2b27899f70f0d7b7222524948.tar.gz rust-9d0d72345df8e9b2b27899f70f0d7b7222524948.zip | |
register snapshot 880fb89
Diffstat (limited to 'src/libcore/macros.rs')
| -rw-r--r-- | src/libcore/macros.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/libcore/macros.rs b/src/libcore/macros.rs index 92d50821592..94ca9ec37b4 100644 --- a/src/libcore/macros.rs +++ b/src/libcore/macros.rs @@ -15,9 +15,6 @@ macro_rules! panic { panic!("explicit panic") ); ($msg:expr) => ({ - #[cfg(stage0)] - static _MSG_FILE_LINE: (&'static str, &'static str, usize) = ($msg, file!(), line!()); - #[cfg(not(stage0))] static _MSG_FILE_LINE: (&'static str, &'static str, u32) = ($msg, file!(), line!()); ::core::panicking::panic(&_MSG_FILE_LINE) }); @@ -26,9 +23,6 @@ macro_rules! panic { // used inside a dead function. Just `#[allow(dead_code)]` is // insufficient, since the user may have // `#[forbid(dead_code)]` and which cannot be overridden. - #[cfg(stage0)] - static _FILE_LINE: (&'static str, usize) = (file!(), line!()); - #[cfg(not(stage0))] static _FILE_LINE: (&'static str, u32) = (file!(), line!()); ::core::panicking::panic_fmt(format_args!($fmt, $($arg)*), &_FILE_LINE) }); |
