Skip to content

Commit cf7a89f

Browse files
committed
std: Use correct conventions for statics in macros
1 parent a43e7d5 commit cf7a89f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/libstd/macros.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@
4040
macro_rules! fail(
4141
() => ({
4242
// static requires less code at runtime, more constant data
43-
static file_line: (&'static str, uint) = (file!(), line!());
44-
::std::rt::begin_unwind_no_time_to_explain(&file_line)
43+
static FILE_LINE: (&'static str, uint) = (file!(), line!());
44+
::std::rt::begin_unwind_no_time_to_explain(&FILE_LINE)
4545
});
4646
($msg:expr) => ({
47-
static file_line: (&'static str, uint) = (file!(), line!());
48-
let (file, line) = file_line;
47+
static FILE_LINE: (&'static str, uint) = (file!(), line!());
48+
let (file, line) = FILE_LINE;
4949
::std::rt::begin_unwind($msg, file, line)
5050
});
5151
($fmt:expr, $($arg:tt)*) => ({
@@ -62,8 +62,8 @@ macro_rules! fail(
6262
// up with the number of calls to fail!()
6363
#[inline(always)]
6464
fn run_fmt(fmt: &::std::fmt::Arguments) -> ! {
65-
static file_line: (&'static str, uint) = (file!(), line!());
66-
::std::rt::begin_unwind_fmt(fmt, &file_line)
65+
static FILE_LINE: (&'static str, uint) = (file!(), line!());
66+
::std::rt::begin_unwind_fmt(fmt, &FILE_LINE)
6767
}
6868
format_args!(run_fmt, $fmt, $($arg)*)
6969
});

0 commit comments

Comments
 (0)