40
40
macro_rules! fail(
41
41
( ) => ( {
42
42
// 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 )
45
45
} ) ;
46
46
( $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 ;
49
49
:: std:: rt:: begin_unwind( $msg, file, line)
50
50
} ) ;
51
51
( $fmt: expr, $( $arg: tt) * ) => ( {
@@ -62,8 +62,8 @@ macro_rules! fail(
62
62
// up with the number of calls to fail!()
63
63
#[ inline( always) ]
64
64
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 )
67
67
}
68
68
format_args!( run_fmt, $fmt, $( $arg) * )
69
69
} ) ;
0 commit comments