diff options
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/failure.rs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/libcore/failure.rs b/src/libcore/failure.rs index f5f45b2f72e..ada83dae9aa 100644 --- a/src/libcore/failure.rs +++ b/src/libcore/failure.rs @@ -33,21 +33,6 @@ use fmt; use intrinsics; -// NOTE: remove after next snapshot -#[cfg(stage0)] -#[cold] #[inline(never)] // this is the slow path, always -#[lang="fail_"] -fn fail_(expr_file_line: &(&'static str, &'static str, uint)) -> ! { - let (expr, file, line) = *expr_file_line; - let ref file_line = (file, line); - format_args!(|args| -> () { - fail_fmt(args, file_line); - }, "{}", expr); - - unsafe { intrinsics::abort() } -} - -#[cfg(not(stage0))] #[cold] #[inline(never)] // this is the slow path, always #[lang="fail"] fn fail(expr_file_line: &(&'static str, &'static str, uint)) -> ! { @@ -79,14 +64,6 @@ pub fn fail_str(msg: &str, file: &(&'static str, uint)) -> ! { pub fn fail_fmt(fmt: &fmt::Arguments, file_line: &(&'static str, uint)) -> ! { #[allow(ctypes)] extern { - - // NOTE: remove after next snapshot - #[cfg(stage0)] - #[lang = "begin_unwind"] - fn fail_impl(fmt: &fmt::Arguments, file: &'static str, - line: uint) -> !; - - #[cfg(not(stage0))] #[lang = "fail_fmt"] fn fail_impl(fmt: &fmt::Arguments, file: &'static str, line: uint) -> !; |
