From 1212fd8abc7602f6c506c936908a799c76549a14 Mon Sep 17 00:00:00 2001 From: Brian Brooks Date: Sat, 21 Feb 2015 06:56:46 -0500 Subject: Resolve includeme.fragment conflict. --- src/libstd/macros.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstd') 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 }) }); -- cgit 1.4.1-3-g733a5