diff --git a/src/libcore/task/mod.rs b/src/libcore/task/mod.rs index 62d30bdc45c7..760a92346d2c 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. *