diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-11-01 11:20:01 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-11-01 11:58:25 -0700 |
| commit | b00449380f520deb65de26e654aeaba4561ee13f (patch) | |
| tree | a55600b9d01023cb19606c7432472ec7196e3988 /src/libstd/rt/kill.rs | |
| parent | 61637439dcced37391f7896561c0feb7790626f3 (diff) | |
Remove unnecessary unwind messages
Now that the type_id intrinsic is working across crates, all of these unnecessary messages can be removed to have the failure type for a task truly be ~Any and only ~Any
Diffstat (limited to 'src/libstd/rt/kill.rs')
| -rw-r--r-- | src/libstd/rt/kill.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/rt/kill.rs b/src/libstd/rt/kill.rs index 949421db9fc..2709c118191 100644 --- a/src/libstd/rt/kill.rs +++ b/src/libstd/rt/kill.rs @@ -155,9 +155,9 @@ use cell::Cell; use option::{Option, Some, None}; use prelude::*; use rt::task::Task; -use rt::task::UnwindMessageLinked; use rt::task::{UnwindResult, Failure}; use task::spawn::Taskgroup; +use task::LinkedFailure; use to_bytes::IterBytes; use unstable::atomics::{AtomicUint, Relaxed}; use unstable::sync::{UnsafeArc, UnsafeArcSelf, UnsafeArcT, LittleLock}; @@ -597,7 +597,7 @@ impl Death { } if !success { - result = Cell::new(Failure(UnwindMessageLinked)); + result = Cell::new(Failure(~LinkedFailure as ~Any)); } } on_exit(result.take()); |
