about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-02-23 01:53:38 +0000
committerbors <bors@rust-lang.org>2015-02-23 01:53:38 +0000
commitf0f7ca27de6b4e03f30012656dad270cda55a363 (patch)
tree862b2d4252579c51278661075d8d0cf1f4149dcd /src/libstd
parent67eb38ee4cfd7b28f8498b5b6492da172768dcb9 (diff)
parentfc9fa1a563c48cc928c8c5754597ffba6f53a635 (diff)
downloadrust-f0f7ca27de6b4e03f30012656dad270cda55a363.tar.gz
rust-f0f7ca27de6b4e03f30012656dad270cda55a363.zip
Auto merge of #21769 - brooksbp:column-line-macro, r=nick29581
Please see discussion in #19284 .
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/macros.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs
index 00bb7f86b17..abdcca59c58 100644
--- a/src/libstd/macros.rs
+++ b/src/libstd/macros.rs
@@ -44,7 +44,7 @@ macro_rules! panic {
     ($msg:expr) => ({
         $crate::rt::begin_unwind($msg, {
             // static requires less code at runtime, more constant data
-            static _FILE_LINE: (&'static str, usize) = (file!(), line!());
+            static _FILE_LINE: (&'static str, usize) = (file!(), line!() as usize);
             &_FILE_LINE
         })
     });
@@ -54,7 +54,7 @@ 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.
-            static _FILE_LINE: (&'static str, usize) = (file!(), line!());
+            static _FILE_LINE: (&'static str, usize) = (file!(), line!() as usize);
             &_FILE_LINE
         })
     });