about summary refs log tree commit diff
path: root/src/libcore/task
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcore/task')
-rw-r--r--src/libcore/task/mod.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libcore/task/mod.rs b/src/libcore/task/mod.rs
index 62d30bdc45c..760a92346d2 100644
--- a/src/libcore/task/mod.rs
+++ b/src/libcore/task/mod.rs
@@ -63,16 +63,11 @@ pub mod rt;
 pub mod spawn;
 
 /// A handle to a task
+#[deriving_eq]
 pub enum Task {
     TaskHandle(task_id)
 }
 
-// XXX: deriving
-impl Task : cmp::Eq {
-    pure fn eq(&self, other: &Task) -> bool { *(*self) == *(*other) }
-    pure fn ne(&self, other: &Task) -> bool { !(*self).eq(other) }
-}
-
 /**
  * Indicates the manner in which a task exited.
  *