33
33
use fmt;
34
34
use intrinsics;
35
35
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) ) ]
55
36
#[ cold] #[ inline( never) ] // this is the slow path, always
56
37
#[ lang="fail" ]
57
38
pub fn fail ( expr_file_line : & ( & ' static str , & ' static str , uint ) ) -> ! {
@@ -78,14 +59,6 @@ fn fail_bounds_check(file_line: &(&'static str, uint),
78
59
pub fn fail_fmt ( fmt : & fmt:: Arguments , file_line : & ( & ' static str , uint ) ) -> ! {
79
60
#[ allow( ctypes) ]
80
61
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) ) ]
89
62
#[ lang = "fail_fmt" ]
90
63
fn fail_impl ( fmt : & fmt:: Arguments , file : & ' static str ,
91
64
line : uint ) -> !;
0 commit comments