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 3838//! ```
3939
4040use option:: { Option , Some } ;
41- #[ cfg( stage0) ]
42- use option:: None ;
4341
4442/// Trait for values that can be compared for equality and inequality.
4543///
@@ -162,19 +160,6 @@ pub fn lexical_ordering(o1: Ordering, o2: Ordering) -> Ordering {
162160pub trait PartialOrd : PartialEq {
163161 /// This method returns an ordering between `self` and `other` values
164162 /// 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) ) ]
178163 fn partial_cmp ( & self , other : & Self ) -> Option < Ordering > ;
179164
180165 /// 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+
19S 2014-06-25 bab614f
210 freebsd-x86_64 14cb361c8fdefa2534bb6776a04815c08680ecd6
311 linux-i386 8fec4845626c557431a4aa7bfb2b5cfc65ad9eda
You can’t perform that action at this time.
0 commit comments