about summary refs log tree commit diff
path: root/src/libstd/sys.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2013-06-16 02:03:37 -0700
committerBrian Anderson <banderson@mozilla.com>2013-06-16 15:09:25 -0700
commit319cf6e465f203c794d71800808c2bd60a1e7613 (patch)
treefd5b6d143357eedbdef914976e14bf3fd9474516 /src/libstd/sys.rs
parentb9119edc55287bb1a9b5609bdef84001c3341e22 (diff)
parent3208fc36bf2c7e99451e21171f82dafef2ea51dc (diff)
downloadrust-319cf6e465f203c794d71800808c2bd60a1e7613.tar.gz
rust-319cf6e465f203c794d71800808c2bd60a1e7613.zip
Merge remote-tracking branch 'brson/io'
Conflicts:
	src/libstd/rt/comm.rs
	src/libstd/rt/mod.rs
	src/libstd/rt/sched.rs
	src/libstd/rt/task.rs
	src/libstd/rt/test.rs
	src/libstd/rt/tube.rs
	src/libstd/rt/uv/uvio.rs
	src/libstd/rt/uvio.rs
	src/libstd/task/spawn.rs
Diffstat (limited to 'src/libstd/sys.rs')
-rw-r--r--src/libstd/sys.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libstd/sys.rs b/src/libstd/sys.rs
index 87e13e494aa..e49ad348542 100644
--- a/src/libstd/sys.rs
+++ b/src/libstd/sys.rs
@@ -213,11 +213,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();
             }
         }
     }