From 748bc3ca49de8ab0b890726120c40567094e43fc Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 29 May 2014 17:45:07 -0700 Subject: std: Rename {Eq,Ord} to Partial{Eq,Ord} This is part of the ongoing renaming of the equality traits. See #12517 for more details. All code using Eq/Ord will temporarily need to move to Partial{Eq,Ord} or the Total{Eq,Ord} traits. The Total traits will soon be renamed to {Eq,Ord}. cc #12517 [breaking-change] --- src/libstd/str.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libstd/str.rs') diff --git a/src/libstd/str.rs b/src/libstd/str.rs index 6538809c8f1..a35b4e7a151 100644 --- a/src/libstd/str.rs +++ b/src/libstd/str.rs @@ -68,7 +68,7 @@ is the same as `&[u8]`. use char::Char; use char; use clone::Clone; -use cmp::{Eq, TotalEq, Ord, TotalOrd, Equiv, Ordering}; +use cmp::{PartialEq, TotalEq, PartialOrd, TotalOrd, Equiv, Ordering}; use container::Container; use default::Default; use fmt; @@ -566,7 +566,7 @@ impl<'a> IntoMaybeOwned<'a> for MaybeOwned<'a> { fn into_maybe_owned(self) -> MaybeOwned<'a> { self } } -impl<'a> Eq for MaybeOwned<'a> { +impl<'a> PartialEq for MaybeOwned<'a> { #[inline] fn eq(&self, other: &MaybeOwned) -> bool { self.as_slice() == other.as_slice() @@ -575,7 +575,7 @@ impl<'a> Eq for MaybeOwned<'a> { impl<'a> TotalEq for MaybeOwned<'a> {} -impl<'a> Ord for MaybeOwned<'a> { +impl<'a> PartialOrd for MaybeOwned<'a> { #[inline] fn lt(&self, other: &MaybeOwned) -> bool { self.as_slice().lt(&other.as_slice()) -- cgit 1.4.1-3-g733a5