@@ -41,7 +41,7 @@ fn fail_(expr_file_line: &(&'static str, &'static str, uint)) -> ! {
41
41
let ( expr, file, line) = * expr_file_line;
42
42
let ref file_line = ( file, line) ;
43
43
format_args ! ( |args| -> ( ) {
44
- fail_impl ( args, file_line) ;
44
+ fail_fmt ( args, file_line) ;
45
45
} , "{}" , expr) ;
46
46
47
47
unsafe { intrinsics:: abort ( ) }
@@ -54,7 +54,7 @@ fn fail(expr_file_line: &(&'static str, &'static str, uint)) -> ! {
54
54
let ( expr, file, line) = * expr_file_line;
55
55
let ref file_line = ( file, line) ;
56
56
format_args ! ( |args| -> ( ) {
57
- fail_impl ( args, file_line) ;
57
+ fail_fmt ( args, file_line) ;
58
58
} , "{}" , expr) ;
59
59
60
60
unsafe { intrinsics:: abort ( ) }
@@ -65,18 +65,18 @@ fn fail(expr_file_line: &(&'static str, &'static str, uint)) -> ! {
65
65
fn fail_bounds_check ( file_line : & ( & ' static str , uint ) ,
66
66
index : uint , len : uint ) -> ! {
67
67
format_args ! ( |args| -> ( ) {
68
- fail_impl ( args, file_line) ;
68
+ fail_fmt ( args, file_line) ;
69
69
} , "index out of bounds: the len is {} but the index is {}" , len, index) ;
70
70
unsafe { intrinsics:: abort ( ) }
71
71
}
72
72
73
73
#[ 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)
76
76
}
77
77
78
78
#[ 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 ) ) -> ! {
80
80
#[ allow( ctypes) ]
81
81
extern {
82
82
0 commit comments