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/liballoc/owned.rs | 6 +++--- src/liballoc/rc.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/liballoc') diff --git a/src/liballoc/owned.rs b/src/liballoc/owned.rs index 114fe4eb0d4..61fff41374b 100644 --- a/src/liballoc/owned.rs +++ b/src/liballoc/owned.rs @@ -12,7 +12,7 @@ use core::any::{Any, AnyRefExt}; use core::clone::Clone; -use core::cmp::{Eq, Ord, TotalEq, TotalOrd, Ordering}; +use core::cmp::{PartialEq, PartialOrd, TotalEq, TotalOrd, Ordering}; use core::default::Default; use core::fmt; use core::intrinsics; @@ -51,13 +51,13 @@ impl Clone for Box { } // box pointers -impl Eq for Box { +impl PartialEq for Box { #[inline] fn eq(&self, other: &Box) -> bool { *(*self) == *(*other) } #[inline] fn ne(&self, other: &Box) -> bool { *(*self) != *(*other) } } -impl Ord for Box { +impl PartialOrd for Box { #[inline] fn lt(&self, other: &Box) -> bool { *(*self) < *(*other) } #[inline] diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs index 96d90e6ed63..8bf7f64a719 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -26,7 +26,7 @@ pointers, and then storing the parent pointers as `Weak` pointers. use core::mem::transmute; use core::cell::Cell; use core::clone::Clone; -use core::cmp::{Eq, Ord, TotalEq, TotalOrd, Ordering}; +use core::cmp::{PartialEq, PartialOrd, TotalEq, TotalOrd, Ordering}; use core::kinds::marker; use core::ops::{Deref, Drop}; use core::option::{Option, Some, None}; @@ -150,7 +150,7 @@ impl Clone for Rc { } } -impl Eq for Rc { +impl PartialEq for Rc { #[inline(always)] fn eq(&self, other: &Rc) -> bool { **self == **other } #[inline(always)] @@ -159,7 +159,7 @@ impl Eq for Rc { impl TotalEq for Rc {} -impl Ord for Rc { +impl PartialOrd for Rc { #[inline(always)] fn lt(&self, other: &Rc) -> bool { **self < **other } -- cgit 1.4.1-3-g733a5