diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-11-28 12:33:00 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-11-28 12:33:00 -0800 |
| commit | 8179e268efd86ae5c1bcf21b4f8d4e01eea7c193 (patch) | |
| tree | 7e3fd944a844a195a0ed1bed8717db07a2d8ccc8 /src/libstd/sort.rs | |
| parent | be6613e048c889a0aeaff056131c2406259f1fb4 (diff) | |
| download | rust-8179e268efd86ae5c1bcf21b4f8d4e01eea7c193.tar.gz rust-8179e268efd86ae5c1bcf21b4f8d4e01eea7c193.zip | |
Register snapshots
Diffstat (limited to 'src/libstd/sort.rs')
| -rw-r--r-- | src/libstd/sort.rs | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/src/libstd/sort.rs b/src/libstd/sort.rs index 73529fd2a93..c6e8c72e6d6 100644 --- a/src/libstd/sort.rs +++ b/src/libstd/sort.rs @@ -871,16 +871,6 @@ mod test_tim_sort { } impl CVal: Ord { - #[cfg(stage0)] - pure fn lt(other: &CVal) -> bool { - unsafe { - let rng = rand::Rng(); - if rng.gen_float() > 0.995 { fail ~"It's happening!!!"; } - } - self.val < other.val - } - #[cfg(stage1)] - #[cfg(stage2)] pure fn lt(&self, other: &CVal) -> bool { unsafe { let rng = rand::Rng(); @@ -888,20 +878,8 @@ mod test_tim_sort { } (*self).val < other.val } - #[cfg(stage0)] - pure fn le(other: &CVal) -> bool { self.val <= other.val } - #[cfg(stage1)] - #[cfg(stage2)] pure fn le(&self, other: &CVal) -> bool { (*self).val <= other.val } - #[cfg(stage0)] - pure fn gt(other: &CVal) -> bool { self.val > other.val } - #[cfg(stage1)] - #[cfg(stage2)] pure fn gt(&self, other: &CVal) -> bool { (*self).val > other.val } - #[cfg(stage0)] - pure fn ge(other: &CVal) -> bool { self.val >= other.val } - #[cfg(stage1)] - #[cfg(stage2)] pure fn ge(&self, other: &CVal) -> bool { (*self).val >= other.val } } @@ -957,16 +935,6 @@ mod test_tim_sort { struct DVal { val: uint } - #[cfg(stage0)] - impl DVal: Ord { - pure fn lt(_x: &DVal) -> bool { true } - pure fn le(_x: &DVal) -> bool { true } - pure fn gt(_x: &DVal) -> bool { true } - pure fn ge(_x: &DVal) -> bool { true } - } - - #[cfg(stage1)] - #[cfg(stage2)] impl DVal: Ord { pure fn lt(&self, _x: &DVal) -> bool { true } pure fn le(&self, _x: &DVal) -> bool { true } @@ -1183,39 +1151,15 @@ mod big_tests { } impl LVal: Ord { - #[cfg(stage0)] - pure fn lt(other: &a/LVal/&self) -> bool { - self.val < other.val - } - #[cfg(stage1)] - #[cfg(stage2)] pure fn lt(&self, other: &a/LVal/&self) -> bool { (*self).val < other.val } - #[cfg(stage0)] - pure fn le(other: &a/LVal/&self) -> bool { - self.val <= other.val - } - #[cfg(stage1)] - #[cfg(stage2)] pure fn le(&self, other: &a/LVal/&self) -> bool { (*self).val <= other.val } - #[cfg(stage0)] - pure fn gt(other: &a/LVal/&self) -> bool { - self.val > other.val - } - #[cfg(stage1)] - #[cfg(stage2)] pure fn gt(&self, other: &a/LVal/&self) -> bool { (*self).val > other.val } - #[cfg(stage0)] - pure fn ge(other: &a/LVal/&self) -> bool { - self.val >= other.val - } - #[cfg(stage1)] - #[cfg(stage2)] pure fn ge(&self, other: &a/LVal/&self) -> bool { (*self).val >= other.val } |
