about summary refs log tree commit diff
path: root/src/libcore/private.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore/private.rs')
-rw-r--r--src/libcore/private.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/private.rs b/src/libcore/private.rs
index 21a74ac08d0..1fb8166ed12 100644
--- a/src/libcore/private.rs
+++ b/src/libcore/private.rs
@@ -225,7 +225,7 @@ pub unsafe fn unwrap_shared_mutable_state<T: Owned>(rc: SharedMutableState<T>)
             cast::forget(move ptr);
             // Also we have to free the (rejected) server endpoints.
             let _server: UnwrapProto = cast::transmute(move serverp);
-            fail ~"Another task is already unwrapping this ARC!";
+            die!(~"Another task is already unwrapping this ARC!");
         }
     }
 }
@@ -371,7 +371,7 @@ impl<T: Owned> Exclusive<T> {
         let rec = unsafe { get_shared_mutable_state(&self.x) };
         do rec.lock.lock {
             if rec.failed {
-                fail ~"Poisoned exclusive - another task failed inside!";
+                die!(~"Poisoned exclusive - another task failed inside!");
             }
             rec.failed = true;
             let result = f(&mut rec.data);
@@ -513,7 +513,7 @@ pub mod tests {
             let x2 = x.clone();
             do task::spawn {
                 for 10.times { task::yield(); } // try to let the unwrapper go
-                fail; // punt it awake from its deadlock
+                die!(); // punt it awake from its deadlock
             }
             let _z = unwrap_exclusive(move x);
             do x2.with |_hello| { }