From fa419d3d21659bb7ee4f4236ae9acf6094300174 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Sun, 28 Sep 2014 19:28:48 -0700 Subject: Register new snapshots --- src/libcore/failure.rs | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src/libcore') 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) -> !; -- cgit 1.4.1-3-g733a5