@@ -41,7 +41,7 @@ fn fail_(expr_file_line: &(&'static str, &'static str, uint)) -> ! {
4141 let ( expr, file, line) = * expr_file_line;
4242 let ref file_line = ( file, line) ;
4343 format_args ! ( |args| -> ( ) {
44- fail_impl ( args, file_line) ;
44+ fail_fmt ( args, file_line) ;
4545 } , "{}" , expr) ;
4646
4747 unsafe { intrinsics:: abort ( ) }
@@ -54,7 +54,7 @@ fn fail(expr_file_line: &(&'static str, &'static str, uint)) -> ! {
5454 let ( expr, file, line) = * expr_file_line;
5555 let ref file_line = ( file, line) ;
5656 format_args ! ( |args| -> ( ) {
57- fail_impl ( args, file_line) ;
57+ fail_fmt ( args, file_line) ;
5858 } , "{}" , expr) ;
5959
6060 unsafe { intrinsics:: abort ( ) }
@@ -65,18 +65,18 @@ fn fail(expr_file_line: &(&'static str, &'static str, uint)) -> ! {
6565fn fail_bounds_check ( file_line : & ( & ' static str , uint ) ,
6666 index : uint , len : uint ) -> ! {
6767 format_args ! ( |args| -> ( ) {
68- fail_impl ( args, file_line) ;
68+ fail_fmt ( args, file_line) ;
6969 } , "index out of bounds: the len is {} but the index is {}" , len, index) ;
7070 unsafe { intrinsics:: abort ( ) }
7171}
7272
7373#[ cold] #[ inline( never) ]
74- pub fn fail_impl_string ( msg : & str , file : & ( & ' static str , uint ) ) -> ! {
75- format_args ! ( |fmt| fail_impl ( fmt, file) , "{}" , msg)
74+ pub fn fail_str ( msg : & str , file : & ( & ' static str , uint ) ) -> ! {
75+ format_args ! ( |fmt| fail_fmt ( fmt, file) , "{}" , msg)
7676}
7777
7878#[ cold] #[ inline( never) ]
79- pub fn fail_impl ( fmt : & fmt:: Arguments , file_line : & ( & ' static str , uint ) ) -> ! {
79+ pub fn fail_fmt ( fmt : & fmt:: Arguments , file_line : & ( & ' static str , uint ) ) -> ! {
8080 #[ allow( ctypes) ]
8181 extern {
8282
0 commit comments