about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2014-07-25 15:54:56 -0700
committerBrian Anderson <banderson@mozilla.com>2014-07-25 15:54:56 -0700
commitcf7a89f0c0935412f24d64c0ae2e202970124ff9 (patch)
tree3e36e53caca6ecf006c22ac42b2e11bf5da592bd /src/libstd
parenta43e7d5cb9b5725dd32376eeea41b4d23ab93160 (diff)
downloadrust-cf7a89f0c0935412f24d64c0ae2e202970124ff9.tar.gz
rust-cf7a89f0c0935412f24d64c0ae2e202970124ff9.zip
std: Use correct conventions for statics in macros
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/macros.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs
index 9ce142836cf..f3f47e3923d 100644
--- a/src/libstd/macros.rs
+++ b/src/libstd/macros.rs
@@ -40,12 +40,12 @@
 macro_rules! fail(
     () => ({
         // static requires less code at runtime, more constant data
-        static file_line: (&'static str, uint) = (file!(), line!());
-        ::std::rt::begin_unwind_no_time_to_explain(&file_line)
+        static FILE_LINE: (&'static str, uint) = (file!(), line!());
+        ::std::rt::begin_unwind_no_time_to_explain(&FILE_LINE)
     });
     ($msg:expr) => ({
-        static file_line: (&'static str, uint) = (file!(), line!());
-        let (file, line) = file_line;
+        static FILE_LINE: (&'static str, uint) = (file!(), line!());
+        let (file, line) = FILE_LINE;
         ::std::rt::begin_unwind($msg, file, line)
     });
     ($fmt:expr, $($arg:tt)*) => ({
@@ -62,8 +62,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!());
-            ::std::rt::begin_unwind_fmt(fmt, &file_line)
+            static FILE_LINE: (&'static str, uint) = (file!(), line!());
+            ::std::rt::begin_unwind_fmt(fmt, &FILE_LINE)
         }
         format_args!(run_fmt, $fmt, $($arg)*)
     });