diff options
| author | bors <bors@rust-lang.org> | 2014-12-31 21:01:42 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-12-31 21:01:42 +0000 |
| commit | 10d99a973498c5a1be6ba318210751efc1c2cf61 (patch) | |
| tree | 7f6c86aebf4ac2cf41fadaeef8d1548147ab70d9 /src/libcore/array.rs | |
| parent | 84f5ad8679c7fc454473ffbf389030f3e5fee379 (diff) | |
| parent | 139f44bae82a7c74bcda9cb2b16dd2ab93f18b17 (diff) | |
| download | rust-10d99a973498c5a1be6ba318210751efc1c2cf61.tar.gz rust-10d99a973498c5a1be6ba318210751efc1c2cf61.zip | |
auto merge of #20360 : alexcrichton/rust/rollup, r=alexcrichton
Diffstat (limited to 'src/libcore/array.rs')
| -rw-r--r-- | src/libcore/array.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/libcore/array.rs b/src/libcore/array.rs index e85a132ed36..88e23377046 100644 --- a/src/libcore/array.rs +++ b/src/libcore/array.rs @@ -39,7 +39,7 @@ macro_rules! array_impls { } } - #[unstable = "waiting for PartialEq to stabilize"] + #[stable] impl<A, B> PartialEq<[B, ..$N]> for [A, ..$N] where A: PartialEq<B> { #[inline] fn eq(&self, other: &[B, ..$N]) -> bool { @@ -51,6 +51,7 @@ macro_rules! array_impls { } } + #[stable] impl<'a, A, B, Rhs> PartialEq<Rhs> for [A, ..$N] where A: PartialEq<B>, Rhs: Deref<[B]>, @@ -61,6 +62,7 @@ macro_rules! array_impls { fn ne(&self, other: &Rhs) -> bool { PartialEq::ne(self[], &**other) } } + #[stable] impl<'a, A, B, Lhs> PartialEq<[B, ..$N]> for Lhs where A: PartialEq<B>, Lhs: Deref<[A]> @@ -71,10 +73,10 @@ macro_rules! array_impls { fn ne(&self, other: &[B, ..$N]) -> bool { PartialEq::ne(&**self, other[]) } } - #[unstable = "waiting for Eq to stabilize"] + #[stable] impl<T:Eq> Eq for [T, ..$N] { } - #[unstable = "waiting for PartialOrd to stabilize"] + #[stable] impl<T:PartialOrd> PartialOrd for [T, ..$N] { #[inline] fn partial_cmp(&self, other: &[T, ..$N]) -> Option<Ordering> { @@ -98,7 +100,7 @@ macro_rules! array_impls { } } - #[unstable = "waiting for Ord to stabilize"] + #[stable] impl<T:Ord> Ord for [T, ..$N] { #[inline] fn cmp(&self, other: &[T, ..$N]) -> Ordering { |
