Skip to content

Commit 7a86aa8

Browse files
committed
auto merge of #18907 : alexcrichton/rust/snapshots, r=jakub-,jakub
2 parents e1149f0 + 065e39b commit 7a86aa8

File tree

17 files changed

+9
-580
lines changed

17 files changed

+9
-580
lines changed

src/liballoc/boxed.rs

-40
Original file line numberDiff line numberDiff line change
@@ -65,50 +65,12 @@ impl<T: Clone> Clone for Box<T> {
6565
}
6666
}
6767

68-
// NOTE(stage0): remove impl after a snapshot
69-
#[cfg(stage0)]
70-
impl<T:PartialEq> PartialEq for Box<T> {
71-
#[inline]
72-
fn eq(&self, other: &Box<T>) -> bool { *(*self) == *(*other) }
73-
#[inline]
74-
fn ne(&self, other: &Box<T>) -> bool { *(*self) != *(*other) }
75-
}
76-
// NOTE(stage0): remove impl after a snapshot
77-
#[cfg(stage0)]
78-
impl<T:PartialOrd> PartialOrd for Box<T> {
79-
#[inline]
80-
fn partial_cmp(&self, other: &Box<T>) -> Option<Ordering> {
81-
(**self).partial_cmp(&**other)
82-
}
83-
#[inline]
84-
fn lt(&self, other: &Box<T>) -> bool { *(*self) < *(*other) }
85-
#[inline]
86-
fn le(&self, other: &Box<T>) -> bool { *(*self) <= *(*other) }
87-
#[inline]
88-
fn ge(&self, other: &Box<T>) -> bool { *(*self) >= *(*other) }
89-
#[inline]
90-
fn gt(&self, other: &Box<T>) -> bool { *(*self) > *(*other) }
91-
}
92-
// NOTE(stage0): remove impl after a snapshot
93-
#[cfg(stage0)]
94-
impl<T: Ord> Ord for Box<T> {
95-
#[inline]
96-
fn cmp(&self, other: &Box<T>) -> Ordering {
97-
(**self).cmp(&**other)
98-
}
99-
}
100-
// NOTE(stage0): remove impl after a snapshot
101-
#[cfg(stage0)]
102-
impl<T: Eq> Eq for Box<T> {}
103-
104-
#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot
10568
impl<Sized? T: PartialEq> PartialEq for Box<T> {
10669
#[inline]
10770
fn eq(&self, other: &Box<T>) -> bool { PartialEq::eq(&**self, &**other) }
10871
#[inline]
10972
fn ne(&self, other: &Box<T>) -> bool { PartialEq::ne(&**self, &**other) }
11073
}
111-
#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot
11274
impl<Sized? T: PartialOrd> PartialOrd for Box<T> {
11375
#[inline]
11476
fn partial_cmp(&self, other: &Box<T>) -> Option<Ordering> {
@@ -123,14 +85,12 @@ impl<Sized? T: PartialOrd> PartialOrd for Box<T> {
12385
#[inline]
12486
fn gt(&self, other: &Box<T>) -> bool { PartialOrd::gt(&**self, &**other) }
12587
}
126-
#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot
12788
impl<Sized? T: Ord> Ord for Box<T> {
12889
#[inline]
12990
fn cmp(&self, other: &Box<T>) -> Ordering {
13091
Ord::cmp(&**self, &**other)
13192
}
13293
}
133-
#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot
13494
impl<Sized? T: Eq> Eq for Box<T> {}
13595

13696
/// Extension methods for an owning `Any` trait object.

src/libcollections/str.rs

-7
Original file line numberDiff line numberDiff line change
@@ -534,13 +534,6 @@ impl<'a> PartialOrd for MaybeOwned<'a> {
534534
}
535535

536536
impl<'a> Ord for MaybeOwned<'a> {
537-
// NOTE(stage0): remove method after a snapshot
538-
#[cfg(stage0)]
539-
#[inline]
540-
fn cmp(&self, other: &MaybeOwned) -> Ordering {
541-
self.as_slice().cmp(&other.as_slice())
542-
}
543-
#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot
544537
#[inline]
545538
fn cmp(&self, other: &MaybeOwned) -> Ordering {
546539
self.as_slice().cmp(other.as_slice())

src/libcollections/vec.rs

-14
Original file line numberDiff line numberDiff line change
@@ -506,13 +506,6 @@ impl<T: PartialEq> PartialEq for Vec<T> {
506506

507507
#[unstable = "waiting on PartialOrd stability"]
508508
impl<T: PartialOrd> PartialOrd for Vec<T> {
509-
// NOTE(stage0): remove method after a snapshot
510-
#[cfg(stage0)]
511-
#[inline]
512-
fn partial_cmp(&self, other: &Vec<T>) -> Option<Ordering> {
513-
self.as_slice().partial_cmp(&other.as_slice())
514-
}
515-
#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot
516509
#[inline]
517510
fn partial_cmp(&self, other: &Vec<T>) -> Option<Ordering> {
518511
self.as_slice().partial_cmp(other.as_slice())
@@ -530,13 +523,6 @@ impl<T: PartialEq, V: AsSlice<T>> Equiv<V> for Vec<T> {
530523

531524
#[unstable = "waiting on Ord stability"]
532525
impl<T: Ord> Ord for Vec<T> {
533-
// NOTE(stage0): remove method after a snapshot
534-
#[cfg(stage0)]
535-
#[inline]
536-
fn cmp(&self, other: &Vec<T>) -> Ordering {
537-
self.as_slice().cmp(&other.as_slice())
538-
}
539-
#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot
540526
#[inline]
541527
fn cmp(&self, other: &Vec<T>) -> Ordering {
542528
self.as_slice().cmp(other.as_slice())

0 commit comments

Comments
 (0)