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/test/run-pass/trait-inheritance-overloading-simple.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/test/run-pass/trait-inheritance-overloading-simple.rs') diff --git a/src/test/run-pass/trait-inheritance-overloading-simple.rs b/src/test/run-pass/trait-inheritance-overloading-simple.rs index 13cfb08e81b..bd9bc9e9b88 100644 --- a/src/test/run-pass/trait-inheritance-overloading-simple.rs +++ b/src/test/run-pass/trait-inheritance-overloading-simple.rs @@ -8,14 +8,14 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use std::cmp::Eq; +use std::cmp::PartialEq; -trait MyNum : Eq { } +trait MyNum : PartialEq { } #[deriving(Show)] struct MyInt { val: int } -impl Eq for MyInt { +impl PartialEq for MyInt { fn eq(&self, other: &MyInt) -> bool { self.val == other.val } fn ne(&self, other: &MyInt) -> bool { !self.eq(other) } } -- cgit 1.4.1-3-g733a5