3333use fmt;
3434use intrinsics;
3535
36+ // NOTE: remove after next snapshot
37+ #[ cfg( stage0) ]
38+ pub use self :: fail_ as fail;
39+
3640// NOTE: remove after next snapshot
3741#[ cfg( stage0) ]
3842#[ cold] #[ inline( never) ] // this is the slow path, always
@@ -50,7 +54,7 @@ fn fail_(expr_file_line: &(&'static str, &'static str, uint)) -> ! {
5054#[ cfg( not( stage0) ) ]
5155#[ cold] #[ inline( never) ] // this is the slow path, always
5256#[ lang="fail" ]
53- fn fail ( expr_file_line : & ( & ' static str , & ' static str , uint ) ) -> ! {
57+ pub fn fail ( expr_file_line : & ( & ' static str , & ' static str , uint ) ) -> ! {
5458 let ( expr, file, line) = * expr_file_line;
5559 let ref file_line = ( file, line) ;
5660 format_args ! ( |args| -> ( ) {
@@ -70,11 +74,6 @@ fn fail_bounds_check(file_line: &(&'static str, uint),
7074 unsafe { intrinsics:: abort ( ) }
7175}
7276
73- #[ cold] #[ inline( never) ]
74- pub fn fail_str ( msg : & str , file : & ( & ' static str , uint ) ) -> ! {
75- format_args ! ( |fmt| fail_fmt( fmt, file) , "{}" , msg)
76- }
77-
7877#[ cold] #[ inline( never) ]
7978pub fn fail_fmt ( fmt : & fmt:: Arguments , file_line : & ( & ' static str , uint ) ) -> ! {
8079 #[ allow( ctypes) ]
0 commit comments