about summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-04-29 02:16:01 +0000
committerbors <bors@rust-lang.org>2015-04-29 02:16:01 +0000
commitc48b499ea31592fe332e8927ecf64a44ebcb0889 (patch)
tree9d0f557bd32aced1f01622dee07ac1530afe810c /src/libstd/rt
parentc4b23aec4c5ddf32df1e0ba3cc23212327cd8b1f (diff)
parent69abc12b0044d641e714bdd73a299cfa4136b7b8 (diff)
downloadrust-c48b499ea31592fe332e8927ecf64a44ebcb0889.tar.gz
rust-c48b499ea31592fe332e8927ecf64a44ebcb0889.zip
Auto merge of #24888 - tamird:snapshot, r=alexcrichton
r? @alexcrichton cc @brson 
Diffstat (limited to 'src/libstd/rt')
-rw-r--r--src/libstd/rt/unwind.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/libstd/rt/unwind.rs b/src/libstd/rt/unwind.rs
index c880aae80fc..a764b99e280 100644
--- a/src/libstd/rt/unwind.rs
+++ b/src/libstd/rt/unwind.rs
@@ -510,23 +510,6 @@ pub fn begin_unwind_fmt(msg: fmt::Arguments, file_line: &(&'static str, u32)) ->
 
 /// This is the entry point of unwinding for panic!() and assert!().
 #[inline(never)] #[cold] // avoid code bloat at the call sites as much as possible
-#[cfg(stage0)]
-pub fn begin_unwind<M: Any + Send>(msg: M, file_line: &(&'static str, usize)) -> ! {
-    // Note that this should be the only allocation performed in this code path.
-    // Currently this means that panic!() on OOM will invoke this code path,
-    // but then again we're not really ready for panic on OOM anyway. If
-    // we do start doing this, then we should propagate this allocation to
-    // be performed in the parent of this thread instead of the thread that's
-    // panicking.
-
-    // see below for why we do the `Any` coercion here.
-    let (file, line) = *file_line;
-    begin_unwind_inner(Box::new(msg), &(file, line as u32))
-}
-
-/// This is the entry point of unwinding for panic!() and assert!().
-#[inline(never)] #[cold] // avoid code bloat at the call sites as much as possible
-#[cfg(not(stage0))]
 pub fn begin_unwind<M: Any + Send>(msg: M, file_line: &(&'static str, u32)) -> ! {
     // Note that this should be the only allocation performed in this code path.
     // Currently this means that panic!() on OOM will invoke this code path,