diff options
Diffstat (limited to 'src/libcore/str.rs')
| -rw-r--r-- | src/libcore/str.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libcore/str.rs b/src/libcore/str.rs index 8b8ddbe847c..a19e720446b 100644 --- a/src/libcore/str.rs +++ b/src/libcore/str.rs @@ -16,7 +16,7 @@ use mem; use char; use clone::Clone; use cmp; -use cmp::{Eq, TotalEq}; +use cmp::{PartialEq, TotalEq}; use container::Container; use default::Default; use iter::{Filter, Map, Iterator}; @@ -696,7 +696,7 @@ pub struct Utf16Items<'a> { iter: slice::Items<'a, u16> } /// The possibilities for values decoded from a `u16` stream. -#[deriving(Eq, TotalEq, Clone, Show)] +#[deriving(PartialEq, TotalEq, Clone, Show)] pub enum Utf16Item { /// A valid codepoint. ScalarValue(char), @@ -930,7 +930,7 @@ Section: Trait implementations #[allow(missing_doc)] pub mod traits { use container::Container; - use cmp::{TotalOrd, Ordering, Less, Equal, Greater, Eq, Ord, Equiv, TotalEq}; + use cmp::{TotalOrd, Ordering, Less, Equal, Greater, PartialEq, PartialOrd, Equiv, TotalEq}; use iter::Iterator; use option::{Some, None}; use str::{Str, StrSlice, eq_slice}; @@ -950,7 +950,7 @@ pub mod traits { } } - impl<'a> Eq for &'a str { + impl<'a> PartialEq for &'a str { #[inline] fn eq(&self, other: & &'a str) -> bool { eq_slice((*self), (*other)) @@ -961,7 +961,7 @@ pub mod traits { impl<'a> TotalEq for &'a str {} - impl<'a> Ord for &'a str { + impl<'a> PartialOrd for &'a str { #[inline] fn lt(&self, other: & &'a str) -> bool { self.cmp(other) == Less } } |
