diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-05-29 17:45:07 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-05-30 15:52:24 -0700 |
| commit | 748bc3ca49de8ab0b890726120c40567094e43fc (patch) | |
| tree | a205dcd5582cbecbb1a02fa3ed1ebfdcc85ff881 /src/libtest | |
| parent | f4fa7c8a07a96cc9d0aae0bfc6515fb747f25341 (diff) | |
| download | rust-748bc3ca49de8ab0b890726120c40567094e43fc.tar.gz rust-748bc3ca49de8ab0b890726120c40567094e43fc.zip | |
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]
Diffstat (limited to 'src/libtest')
| -rw-r--r-- | src/libtest/lib.rs | 14 | ||||
| -rw-r--r-- | src/libtest/stats.rs | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs index 1de7f90c806..bc69dc442dc 100644 --- a/src/libtest/lib.rs +++ b/src/libtest/lib.rs @@ -83,7 +83,7 @@ pub mod stats; // colons. This way if some test runner wants to arrange the tests // hierarchically it may. -#[deriving(Clone, Eq, TotalEq, Hash)] +#[deriving(Clone, PartialEq, TotalEq, Hash)] pub enum TestName { StaticTestName(&'static str), DynTestName(String) @@ -183,7 +183,7 @@ pub struct Bencher { // The definition of a single test. A test runner will run a list of // these. -#[deriving(Clone, Show, Eq, TotalEq, Hash)] +#[deriving(Clone, Show, PartialEq, TotalEq, Hash)] pub struct TestDesc { pub name: TestName, pub ignore: bool, @@ -196,7 +196,7 @@ pub struct TestDescAndFn { pub testfn: TestFn, } -#[deriving(Clone, Encodable, Decodable, Eq, Show)] +#[deriving(Clone, Encodable, Decodable, PartialEq, Show)] pub struct Metric { value: f64, noise: f64 @@ -208,7 +208,7 @@ impl Metric { } } -#[deriving(Eq)] +#[deriving(PartialEq)] pub struct MetricMap(TreeMap<String,Metric>); impl Clone for MetricMap { @@ -219,7 +219,7 @@ impl Clone for MetricMap { } /// Analysis of a single change in metric -#[deriving(Eq, Show)] +#[deriving(PartialEq, Show)] pub enum MetricChange { LikelyNoise, MetricAdded, @@ -444,13 +444,13 @@ pub fn opt_shard(maybestr: Option<String>) -> Option<(uint,uint)> { } -#[deriving(Clone, Eq)] +#[deriving(Clone, PartialEq)] pub struct BenchSamples { ns_iter_summ: stats::Summary<f64>, mb_s: uint, } -#[deriving(Clone, Eq)] +#[deriving(Clone, PartialEq)] pub enum TestResult { TrOk, TrFailed, diff --git a/src/libtest/stats.rs b/src/libtest/stats.rs index 77b1eae0a56..16a96d9f606 100644 --- a/src/libtest/stats.rs +++ b/src/libtest/stats.rs @@ -126,7 +126,7 @@ pub trait Stats <T: FloatMath + FromPrimitive>{ } /// Extracted collection of all the summary statistics of a sample set. -#[deriving(Clone, Eq)] +#[deriving(Clone, PartialEq)] #[allow(missing_doc)] pub struct Summary<T> { pub sum: T, |
