about summary refs log tree commit diff
path: root/src/libsyntax/owned_slice.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsyntax/owned_slice.rs')
-rw-r--r--src/libsyntax/owned_slice.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/owned_slice.rs b/src/libsyntax/owned_slice.rs
index f93c3576943..c04c10e0d72 100644
--- a/src/libsyntax/owned_slice.rs
+++ b/src/libsyntax/owned_slice.rs
@@ -113,7 +113,7 @@ impl<S: Writer, T: Hash<S>> Hash<S> for OwnedSlice<T> {
     }
 }
 
-impl<T: Eq> Eq for OwnedSlice<T> {
+impl<T: PartialEq> PartialEq for OwnedSlice<T> {
     fn eq(&self, other: &OwnedSlice<T>) -> bool {
         self.as_slice() == other.as_slice()
     }