3333use fmt;
3434use intrinsics;
3535
36- // NOTE: remove after next snapshot
37- #[ cfg( stage0) ]
38- pub use self :: fail_ as fail;
39-
40- // NOTE: remove after next snapshot
41- #[ cfg( stage0) ]
42- #[ cold] #[ inline( never) ] // this is the slow path, always
43- #[ lang="fail_" ]
44- fn fail_ ( expr_file_line : & ( & ' static str , & ' static str , uint ) ) -> ! {
45- let ( expr, file, line) = * expr_file_line;
46- let ref file_line = ( file, line) ;
47- format_args ! ( |args| -> ( ) {
48- fail_fmt( args, file_line) ;
49- } , "{}" , expr) ;
50-
51- unsafe { intrinsics:: abort ( ) }
52- }
53-
54- #[ cfg( not( stage0) ) ]
5536#[ cold] #[ inline( never) ] // this is the slow path, always
5637#[ lang="fail" ]
5738pub fn fail ( expr_file_line : & ( & ' static str , & ' static str , uint ) ) -> ! {
@@ -78,14 +59,6 @@ fn fail_bounds_check(file_line: &(&'static str, uint),
7859pub fn fail_fmt ( fmt : & fmt:: Arguments , file_line : & ( & ' static str , uint ) ) -> ! {
7960 #[ allow( ctypes) ]
8061 extern {
81-
82- // NOTE: remove after next snapshot
83- #[ cfg( stage0) ]
84- #[ lang = "begin_unwind" ]
85- fn fail_impl ( fmt : & fmt:: Arguments , file : & ' static str ,
86- line : uint ) -> !;
87-
88- #[ cfg( not( stage0) ) ]
8962 #[ lang = "fail_fmt" ]
9063 fn fail_impl ( fmt : & fmt:: Arguments , file : & ' static str ,
9164 line : uint ) -> !;
0 commit comments