about summary refs log tree commit diff
path: root/src/libcore/array.rs
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2015-01-01 14:53:20 -0500
committerJorge Aparicio <japaricious@gmail.com>2015-01-02 12:19:59 -0500
commit64b7c22c46b204520a6fae1c5cd750a3d3c6a66a (patch)
tree6e9a504759c5ac42f747c5739b4173d6646cd8c8 /src/libcore/array.rs
parentd55577255434d1a9969b74cc4ac5dff4c04d6054 (diff)
downloadrust-64b7c22c46b204520a6fae1c5cd750a3d3c6a66a.tar.gz
rust-64b7c22c46b204520a6fae1c5cd750a3d3c6a66a.zip
core: use assoc types in `Deref[Mut]`
Diffstat (limited to 'src/libcore/array.rs')
-rw-r--r--src/libcore/array.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/array.rs b/src/libcore/array.rs
index 28563a60b61..ba7714ad9bc 100644
--- a/src/libcore/array.rs
+++ b/src/libcore/array.rs
@@ -54,7 +54,7 @@ macro_rules! array_impls {
             #[stable]
             impl<'a, A, B, Rhs> PartialEq<Rhs> for [A; $N] where
                 A: PartialEq<B>,
-                Rhs: Deref<[B]>,
+                Rhs: Deref<Target=[B]>,
             {
                 #[inline(always)]
                 fn eq(&self, other: &Rhs) -> bool { PartialEq::eq(self[], &**other) }
@@ -65,7 +65,7 @@ macro_rules! array_impls {
             #[stable]
             impl<'a, A, B, Lhs> PartialEq<[B; $N]> for Lhs where
                 A: PartialEq<B>,
-                Lhs: Deref<[A]>
+                Lhs: Deref<Target=[A]>
             {
                 #[inline(always)]
                 fn eq(&self, other: &[B; $N]) -> bool { PartialEq::eq(&**self, other[]) }