diff options
| author | Steven Fackler <sfackler@palantir.com> | 2014-09-28 19:28:48 -0700 |
|---|---|---|
| committer | Steven Fackler <sfackler@palantir.com> | 2014-09-28 19:28:48 -0700 |
| commit | fa419d3d21659bb7ee4f4236ae9acf6094300174 (patch) | |
| tree | 34bdb7bbe96c5103249be09cf8e2889b493c9953 /src/libcore | |
| parent | b7aa03a3caab2f15f32dcdb20b23510707ba47f8 (diff) | |
| download | rust-fa419d3d21659bb7ee4f4236ae9acf6094300174.tar.gz rust-fa419d3d21659bb7ee4f4236ae9acf6094300174.zip | |
Register new snapshots
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) -> !; |
