about summary refs log tree commit diff
path: root/src/test/run-fail/fail-task-name-send-str.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-11-21 16:55:40 -0800
committerAlex Crichton <alex@alexcrichton.com>2013-11-24 21:21:12 -0800
commitacca9e3834842ee8d8104abe9b8b9bb88861793c (patch)
tree5b2ab145e0853d74661cae51726baceaca2ab884 /src/test/run-fail/fail-task-name-send-str.rs
parent85a1eff3a99c5d60bf34ca6f08f87ed341329af0 (diff)
downloadrust-acca9e3834842ee8d8104abe9b8b9bb88861793c.tar.gz
rust-acca9e3834842ee8d8104abe9b8b9bb88861793c.zip
Remove linked failure from the runtime
The reasons for doing this are:

* The model on which linked failure is based is inherently complex
* The implementation is also very complex, and there are few remaining who
  fully understand the implementation
* There are existing race conditions in the core context switching function of
  the scheduler, and possibly others.
* It's unclear whether this model of linked failure maps well to a 1:1 threading
  model

Linked failure is often a desired aspect of tasks, but we would like to take a
much more conservative approach in re-implementing linked failure if at all.

Closes #8674
Closes #8318
Closes #8863
Diffstat (limited to 'src/test/run-fail/fail-task-name-send-str.rs')
-rw-r--r--src/test/run-fail/fail-task-name-send-str.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/run-fail/fail-task-name-send-str.rs b/src/test/run-fail/fail-task-name-send-str.rs
index 96fe82fa5ca..0e3ef39cd1d 100644
--- a/src/test/run-fail/fail-task-name-send-str.rs
+++ b/src/test/run-fail/fail-task-name-send-str.rs
@@ -13,7 +13,8 @@
 fn main() {
     let mut t = ::std::task::task();
     t.name("send name".to_send_str());
-    do t.spawn {
+    do t.try {
         fail!("test");
-    }
+        3
+    }.unwrap()
 }