]> git.lizzy.rs Git - rust.git/commitdiff
Use correct conventions for static
authorBrian Anderson <banderson@mozilla.com>
Mon, 28 Jul 2014 20:40:55 +0000 (13:40 -0700)
committerBrian Anderson <banderson@mozilla.com>
Mon, 28 Jul 2014 20:40:55 +0000 (13:40 -0700)
src/libcore/macros.rs

index 26bb69943f8a5eea2118d4e036f59613c37062e4..5373008612bb34c6672eb2df90e22a29e42ccf02 100644 (file)
@@ -33,8 +33,8 @@ macro_rules! fail(
         // up with the number of calls to fail!()
         #[inline(always)]
         fn run_fmt(fmt: &::std::fmt::Arguments) -> ! {
-            static file_line: (&'static str, uint) = (file!(), line!());
-            ::core::failure::begin_unwind(fmt, &file_line)
+            static FILE_LINE: (&'static str, uint) = (file!(), line!());
+            ::core::failure::begin_unwind(fmt, &FILE_LINE)
         }
         format_args!(run_fmt, $fmt, $($arg)*)
     });