diff options
| author | bors <bors@rust-lang.org> | 2015-02-16 00:46:43 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-02-16 00:46:43 +0000 |
| commit | c5db290bf6df986a6acd5ce993f278c18e55ca37 (patch) | |
| tree | 5a67ed2bb3601bc1d5f477057324421fbd2291c3 /src/libstd/rt | |
| parent | 342ab53bf858a89e418973ba3bfff55161c0b174 (diff) | |
| parent | cea2bbfe27707becaacad1ce64b835b408c0ccf8 (diff) | |
| download | rust-c5db290bf6df986a6acd5ce993f278c18e55ca37.tar.gz rust-c5db290bf6df986a6acd5ce993f278c18e55ca37.zip | |
Auto merge of #22367 - Manishearth:rollup, r=steveklabnik
(still testing locally)
Diffstat (limited to 'src/libstd/rt')
| -rw-r--r-- | src/libstd/rt/unwind.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/rt/unwind.rs b/src/libstd/rt/unwind.rs index 659e787a9ff..464adadde62 100644 --- a/src/libstd/rt/unwind.rs +++ b/src/libstd/rt/unwind.rs @@ -62,7 +62,7 @@ use prelude::v1::*; use any::Any; use cell::Cell; use cmp; -use failure; +use panicking; use fmt; use intrinsics; use libc::c_void; @@ -534,10 +534,10 @@ pub fn begin_unwind<M: Any + Send>(msg: M, file_line: &(&'static str, uint)) -> /// }` from ~1900/3700 (-O/no opts) to 180/590. #[inline(never)] #[cold] // this is the slow path, please never inline this fn begin_unwind_inner(msg: Box<Any + Send>, file_line: &(&'static str, uint)) -> ! { - // Make sure the default failure handler is registered before we look at the + // Make sure the default panic handler is registered before we look at the // callbacks. static INIT: Once = ONCE_INIT; - INIT.call_once(|| unsafe { register(failure::on_fail); }); + INIT.call_once(|| unsafe { register(panicking::on_panic); }); // First, invoke call the user-defined callbacks triggered on thread panic. // |
