about summary refs log tree commit diff
path: root/src/libstd/rt/sched.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2013-06-17 23:24:50 -0700
committerBrian Anderson <banderson@mozilla.com>2013-06-17 23:24:50 -0700
commitb5fbec9c1e519c7e6fa45e2157f6e746ef3f6849 (patch)
tree17733cc64b34dbc72789a494e2c3f67fa766a825 /src/libstd/rt/sched.rs
parent021e81fbd311d93c94cbd40524ff53062fd7fe6e (diff)
downloadrust-b5fbec9c1e519c7e6fa45e2157f6e746ef3f6849.tar.gz
rust-b5fbec9c1e519c7e6fa45e2157f6e746ef3f6849.zip
std: Rename `abort!` to `rtabort!` to match other macros
Diffstat (limited to 'src/libstd/rt/sched.rs')
-rw-r--r--src/libstd/rt/sched.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libstd/rt/sched.rs b/src/libstd/rt/sched.rs
index be57247d514..5c082988012 100644
--- a/src/libstd/rt/sched.rs
+++ b/src/libstd/rt/sched.rs
@@ -357,7 +357,7 @@ impl Scheduler {
                 home_handle.send(PinnedTask(task));
             }
             AnySched => {
-                abort!("error: cannot send anysched task home");
+                rtabort!("error: cannot send anysched task home");
             }
         }
     }
@@ -422,10 +422,10 @@ impl Scheduler {
                         return true;
                     }
                     4 => {
-                        abort!("task home was None!");
+                        rtabort!("task home was None!");
                     }
                     _ => {
-                        abort!("literally, you should not be here");
+                        rtabort!("literally, you should not be here");
                     }
                 }
             }
@@ -452,7 +452,7 @@ impl Scheduler {
             dead_task.take().recycle(&mut sched.stack_pool);
         }
 
-        abort!("control reached end of task");
+        rtabort!("control reached end of task");
     }
 
     pub fn schedule_task(~self, task: ~Coroutine) {
@@ -672,7 +672,7 @@ impl Coroutine {
                 Some(Sched(SchedHandle { sched_id: ref id, _ })) => {
                     *id == sched.sched_id()
                 }
-                None => { abort!("error: homeless task!"); }
+                None => { rtabort!("error: homeless task!"); }
             }
         }
     }
@@ -696,7 +696,7 @@ impl Coroutine {
         match self.task.home {
             Some(AnySched) => { false }
             Some(Sched(_)) => { true }
-            None => { abort!("error: homeless task!");
+            None => { rtabort!("error: homeless task!");
                     }
         }
     }
@@ -710,7 +710,7 @@ impl Coroutine {
             Some(Sched(SchedHandle { sched_id: ref id, _})) => {
                 *id == sched.sched_id()
             }
-            None => { abort!("error: homeless task!"); }
+            None => { rtabort!("error: homeless task!"); }
         }
     }