File tree Expand file tree Collapse file tree 2 files changed +8
-15
lines changed Expand file tree Collapse file tree 2 files changed +8
-15
lines changed Original file line number Diff line number Diff line change 38
38
//! ```
39
39
40
40
use option:: { Option , Some } ;
41
- #[ cfg( stage0) ]
42
- use option:: None ;
43
41
44
42
/// Trait for values that can be compared for equality and inequality.
45
43
///
@@ -162,19 +160,6 @@ pub fn lexical_ordering(o1: Ordering, o2: Ordering) -> Ordering {
162
160
pub trait PartialOrd : PartialEq {
163
161
/// This method returns an ordering between `self` and `other` values
164
162
/// if one exists.
165
- #[ cfg( stage0) ]
166
- fn partial_cmp ( & self , other : & Self ) -> Option < Ordering > {
167
- match ( !self . lt ( other) , !other. lt ( self ) ) {
168
- ( false , false ) => None ,
169
- ( false , true ) => Some ( Less ) ,
170
- ( true , false ) => Some ( Greater ) ,
171
- ( true , true ) => Some ( Equal ) ,
172
- }
173
- }
174
-
175
- /// This method returns an ordering between `self` and `other` values
176
- /// if one exists.
177
- #[ cfg( not( stage0) ) ]
178
163
fn partial_cmp ( & self , other : & Self ) -> Option < Ordering > ;
179
164
180
165
/// This method tests less than (for `self` and `other`) and is used by the `<` operator.
Original file line number Diff line number Diff line change
1
+ S 2014-07-05 aaff4e0
2
+ freebsd-x86_64 10272ca9eb17e1be4a4b172aacfb4b33fffcc8fb
3
+ linux-i386 72ba9f6e0d096c30f128cb3736ffac0b57530a20
4
+ linux-x86_64 e5621f84934a7d76002ab95a354fbbb9ae6ebbb1
5
+ macos-i386 a88fd84ee959e59265de12b8f551ed56c0e943df
6
+ macos-x86_64 f19d479e5a0d2a6067a05b1910e4a6a544836b0a
7
+ winnt-i386 0c5a91e422409b89ac22f8c265af66f759d476c8
8
+
1
9
S 2014-06-25 bab614f
2
10
freebsd-x86_64 14cb361c8fdefa2534bb6776a04815c08680ecd6
3
11
linux-i386 8fec4845626c557431a4aa7bfb2b5cfc65ad9eda
You can’t perform that action at this time.
0 commit comments