diff options
| author | Luqman Aden <laden@csclub.uwaterloo.ca> | 2014-07-06 02:13:35 -0400 |
|---|---|---|
| committer | Luqman Aden <laden@csclub.uwaterloo.ca> | 2014-07-06 02:13:35 -0400 |
| commit | 3fd2b0dc02162f84521d43424ab502f7fe5ee9ad (patch) | |
| tree | f6ef1d6628d692b18048f61fd5f06c2fd0c98e30 /src/libcore | |
| parent | 832731daced4aaea0016610f7839dc9fc6ae2d4f (diff) | |
| download | rust-3fd2b0dc02162f84521d43424ab502f7fe5ee9ad.tar.gz rust-3fd2b0dc02162f84521d43424ab502f7fe5ee9ad.zip | |
Register snapshot.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/cmp.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/libcore/cmp.rs b/src/libcore/cmp.rs index 8696d385c44..f374d2e9a27 100644 --- a/src/libcore/cmp.rs +++ b/src/libcore/cmp.rs @@ -38,8 +38,6 @@ //! ``` use option::{Option, Some}; -#[cfg(stage0)] -use option::None; /// Trait for values that can be compared for equality and inequality. /// @@ -162,19 +160,6 @@ pub fn lexical_ordering(o1: Ordering, o2: Ordering) -> Ordering { pub trait PartialOrd: PartialEq { /// This method returns an ordering between `self` and `other` values /// if one exists. - #[cfg(stage0)] - fn partial_cmp(&self, other: &Self) -> Option<Ordering> { - match (!self.lt(other), !other.lt(self)) { - (false, false) => None, - (false, true) => Some(Less), - (true, false) => Some(Greater), - (true, true) => Some(Equal), - } - } - - /// This method returns an ordering between `self` and `other` values - /// if one exists. - #[cfg(not(stage0))] fn partial_cmp(&self, other: &Self) -> Option<Ordering>; /// This method tests less than (for `self` and `other`) and is used by the `<` operator. |
