diff options
| author | Brian Anderson <banderson@mozilla.com> | 2013-06-15 19:31:46 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-06-15 19:31:46 -0700 |
| commit | 3208fc36bf2c7e99451e21171f82dafef2ea51dc (patch) | |
| tree | 0ac94c64e1601824d3e326964580a3b84295737a /src/libstd/sys.rs | |
| parent | b08c4467980bc712995d421dd50c1cca2948b67b (diff) | |
| parent | 505ef7e710ff890c0027fadad54997041b7ee93b (diff) | |
| download | rust-3208fc36bf2c7e99451e21171f82dafef2ea51dc.tar.gz rust-3208fc36bf2c7e99451e21171f82dafef2ea51dc.zip | |
Merge remote-tracking branch 'brson/io-wip' into io
Conflicts: src/libstd/rt/sched.rs src/libstd/rt/task.rs src/libstd/rt/test.rs src/libstd/task/mod.rs src/libstd/task/spawn.rs
Diffstat (limited to 'src/libstd/sys.rs')
| -rw-r--r-- | src/libstd/sys.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libstd/sys.rs b/src/libstd/sys.rs index 137070ce202..77085d19567 100644 --- a/src/libstd/sys.rs +++ b/src/libstd/sys.rs @@ -226,11 +226,7 @@ pub fn begin_unwind_(msg: *c_char, file: *c_char, line: size_t) -> ! { gc::cleanup_stack_for_failure(); let task = Local::unsafe_borrow::<Task>(); - let unwinder: &mut Option<Unwinder> = &mut (*task).unwinder; - match *unwinder { - Some(ref mut unwinder) => unwinder.begin_unwind(), - None => abort!("failure without unwinder. aborting process") - } + (*task).unwinder.begin_unwind(); } } } |
