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/path/posix.rs | 4 ++-- src/libstd/path/windows.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/libstd/path') diff --git a/src/libstd/path/posix.rs b/src/libstd/path/posix.rs index c0c7a042f11..fbecbd7665b 100644 --- a/src/libstd/path/posix.rs +++ b/src/libstd/path/posix.rs @@ -13,7 +13,7 @@ use container::Container; use c_str::{CString, ToCStr}; use clone::Clone; -use cmp::{Eq, TotalEq}; +use cmp::{PartialEq, TotalEq}; use from_str::FromStr; use io::Writer; use iter::{DoubleEndedIterator, AdditiveIterator, Extendable, Iterator, Map}; @@ -58,7 +58,7 @@ pub fn is_sep(c: char) -> bool { c == SEP } -impl Eq for Path { +impl PartialEq for Path { #[inline] fn eq(&self, other: &Path) -> bool { self.repr == other.repr diff --git a/src/libstd/path/windows.rs b/src/libstd/path/windows.rs index 88c3e9def8c..d46a373de4d 100644 --- a/src/libstd/path/windows.rs +++ b/src/libstd/path/windows.rs @@ -13,7 +13,7 @@ use ascii::AsciiCast; use c_str::{CString, ToCStr}; use clone::Clone; -use cmp::{Eq, TotalEq}; +use cmp::{PartialEq, TotalEq}; use container::Container; use from_str::FromStr; use io::Writer; @@ -79,7 +79,7 @@ pub struct Path { sepidx: Option // index of the final separator in the non-prefix portion of repr } -impl Eq for Path { +impl PartialEq for Path { #[inline] fn eq(&self, other: &Path) -> bool { self.repr == other.repr @@ -956,7 +956,7 @@ pub fn is_sep_byte_verbatim(u: &u8) -> bool { } /// Prefix types for Path -#[deriving(Eq, Clone)] +#[deriving(PartialEq, Clone)] pub enum PathPrefix { /// Prefix `\\?\`, uint is the length of the following component VerbatimPrefix(uint), -- cgit 1.4.1-3-g733a5