From 8179e268efd86ae5c1bcf21b4f8d4e01eea7c193 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 28 Nov 2012 12:33:00 -0800 Subject: Register snapshots --- src/libcore/task/local_data_priv.rs | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/libcore/task') diff --git a/src/libcore/task/local_data_priv.rs b/src/libcore/task/local_data_priv.rs index 02550f3470f..b8537373e65 100644 --- a/src/libcore/task/local_data_priv.rs +++ b/src/libcore/task/local_data_priv.rs @@ -7,23 +7,11 @@ pub trait LocalData { } impl @T: LocalData { } impl LocalData: Eq { - #[cfg(stage0)] - pure fn eq(other: &@LocalData) -> bool unsafe { - let ptr_a: (uint, uint) = cast::reinterpret_cast(&self); - let ptr_b: (uint, uint) = cast::reinterpret_cast(other); - return ptr_a == ptr_b; - } - #[cfg(stage1)] - #[cfg(stage2)] pure fn eq(&self, other: &@LocalData) -> bool unsafe { let ptr_a: (uint, uint) = cast::reinterpret_cast(&(*self)); let ptr_b: (uint, uint) = cast::reinterpret_cast(other); return ptr_a == ptr_b; } - #[cfg(stage0)] - pure fn ne(other: &@LocalData) -> bool { !self.eq(other) } - #[cfg(stage1)] - #[cfg(stage2)] pure fn ne(&self, other: &@LocalData) -> bool { !(*self).eq(other) } } -- cgit 1.4.1-3-g733a5