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/vec.rs | 72 ------------------------------------------------------ 1 file changed, 72 deletions(-) (limited to 'src/libcore/vec.rs') diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs index 087ce42b28a..47864d0b562 100644 --- a/src/libcore/vec.rs +++ b/src/libcore/vec.rs @@ -1347,47 +1347,23 @@ pure fn eq(a: &[T], b: &[T]) -> bool { impl &[T] : Eq { #[inline(always)] - #[cfg(stage0)] - pure fn eq(other: & &self/[T]) -> bool { eq(self, (*other)) } - #[cfg(stage1)] - #[cfg(stage2)] pure fn eq(&self, other: & &self/[T]) -> bool { eq((*self), (*other)) } #[inline(always)] - #[cfg(stage0)] - pure fn ne(other: & &self/[T]) -> bool { !self.eq(other) } - #[cfg(stage1)] - #[cfg(stage2)] pure fn ne(&self, other: & &self/[T]) -> bool { !(*self).eq(other) } } impl ~[T] : Eq { #[inline(always)] - #[cfg(stage0)] - pure fn eq(other: &~[T]) -> bool { eq(self, (*other)) } - #[cfg(stage1)] - #[cfg(stage2)] pure fn eq(&self, other: &~[T]) -> bool { eq((*self), (*other)) } #[inline(always)] - #[cfg(stage0)] - pure fn ne(other: &~[T]) -> bool { !self.eq(other) } - #[cfg(stage1)] - #[cfg(stage2)] pure fn ne(&self, other: &~[T]) -> bool { !(*self).eq(other) } } impl @[T] : Eq { #[inline(always)] - #[cfg(stage0)] - pure fn eq(other: &@[T]) -> bool { eq(self, (*other)) } - #[cfg(stage1)] - #[cfg(stage2)] pure fn eq(&self, other: &@[T]) -> bool { eq((*self), (*other)) } #[inline(always)] - #[cfg(stage0)] - pure fn ne(other: &@[T]) -> bool { !self.eq(other) } - #[cfg(stage1)] - #[cfg(stage2)] pure fn ne(&self, other: &@[T]) -> bool { !(*self).eq(other) } } @@ -1414,82 +1390,34 @@ pure fn gt(a: &[T], b: &[T]) -> bool { lt(b, a) } impl &[T] : Ord { #[inline(always)] - #[cfg(stage0)] - pure fn lt(other: & &self/[T]) -> bool { lt(self, (*other)) } - #[cfg(stage1)] - #[cfg(stage2)] pure fn lt(&self, other: & &self/[T]) -> bool { lt((*self), (*other)) } #[inline(always)] - #[cfg(stage0)] - pure fn le(other: & &self/[T]) -> bool { le(self, (*other)) } - #[cfg(stage1)] - #[cfg(stage2)] pure fn le(&self, other: & &self/[T]) -> bool { le((*self), (*other)) } #[inline(always)] - #[cfg(stage0)] - pure fn ge(other: & &self/[T]) -> bool { ge(self, (*other)) } - #[cfg(stage1)] - #[cfg(stage2)] pure fn ge(&self, other: & &self/[T]) -> bool { ge((*self), (*other)) } #[inline(always)] - #[cfg(stage0)] - pure fn gt(other: & &self/[T]) -> bool { gt(self, (*other)) } - #[cfg(stage1)] - #[cfg(stage2)] pure fn gt(&self, other: & &self/[T]) -> bool { gt((*self), (*other)) } } impl ~[T] : Ord { #[inline(always)] - #[cfg(stage0)] - pure fn lt(other: &~[T]) -> bool { lt(self, (*other)) } - #[cfg(stage1)] - #[cfg(stage2)] pure fn lt(&self, other: &~[T]) -> bool { lt((*self), (*other)) } #[inline(always)] - #[cfg(stage0)] - pure fn le(other: &~[T]) -> bool { le(self, (*other)) } - #[cfg(stage1)] - #[cfg(stage2)] pure fn le(&self, other: &~[T]) -> bool { le((*self), (*other)) } #[inline(always)] - #[cfg(stage0)] - pure fn ge(other: &~[T]) -> bool { ge(self, (*other)) } - #[cfg(stage1)] - #[cfg(stage2)] pure fn ge(&self, other: &~[T]) -> bool { ge((*self), (*other)) } #[inline(always)] - #[cfg(stage0)] - pure fn gt(other: &~[T]) -> bool { gt(self, (*other)) } - #[cfg(stage1)] - #[cfg(stage2)] pure fn gt(&self, other: &~[T]) -> bool { gt((*self), (*other)) } } impl @[T] : Ord { #[inline(always)] - #[cfg(stage0)] - pure fn lt(other: &@[T]) -> bool { lt(self, (*other)) } - #[cfg(stage1)] - #[cfg(stage2)] pure fn lt(&self, other: &@[T]) -> bool { lt((*self), (*other)) } #[inline(always)] - #[cfg(stage0)] - pure fn le(other: &@[T]) -> bool { le(self, (*other)) } - #[cfg(stage1)] - #[cfg(stage2)] pure fn le(&self, other: &@[T]) -> bool { le((*self), (*other)) } #[inline(always)] - #[cfg(stage0)] - pure fn ge(other: &@[T]) -> bool { ge(self, (*other)) } - #[cfg(stage1)] - #[cfg(stage2)] pure fn ge(&self, other: &@[T]) -> bool { ge((*self), (*other)) } #[inline(always)] - #[cfg(stage0)] - pure fn gt(other: &@[T]) -> bool { gt(self, (*other)) } - #[cfg(stage1)] - #[cfg(stage2)] pure fn gt(&self, other: &@[T]) -> bool { gt((*self), (*other)) } } -- cgit 1.4.1-3-g733a5