diff options
| author | bors <bors@rust-lang.org> | 2014-11-12 21:07:09 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-11-12 21:07:09 +0000 |
| commit | 7a86aa83eea27529b1b8855cd4e2c8ce7bf787ef (patch) | |
| tree | 5fa35a80a13f2eb0457dd3bfbd0733f2aa8afe15 /src/liballoc | |
| parent | e1149f0223e28b320a3f4d66981ce09607fb6535 (diff) | |
| parent | 065e39bb2fd439d792d8a8f72a7182dfc8b7c5a3 (diff) | |
| download | rust-7a86aa83eea27529b1b8855cd4e2c8ce7bf787ef.tar.gz rust-7a86aa83eea27529b1b8855cd4e2c8ce7bf787ef.zip | |
auto merge of #18907 : alexcrichton/rust/snapshots, r=jakub-,jakub
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/boxed.rs | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index 0a06f7c0005..26f8522e1c1 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -65,50 +65,12 @@ impl<T: Clone> Clone for Box<T> { } } -// NOTE(stage0): remove impl after a snapshot -#[cfg(stage0)] -impl<T:PartialEq> PartialEq for Box<T> { - #[inline] - fn eq(&self, other: &Box<T>) -> bool { *(*self) == *(*other) } - #[inline] - fn ne(&self, other: &Box<T>) -> bool { *(*self) != *(*other) } -} -// NOTE(stage0): remove impl after a snapshot -#[cfg(stage0)] -impl<T:PartialOrd> PartialOrd for Box<T> { - #[inline] - fn partial_cmp(&self, other: &Box<T>) -> Option<Ordering> { - (**self).partial_cmp(&**other) - } - #[inline] - fn lt(&self, other: &Box<T>) -> bool { *(*self) < *(*other) } - #[inline] - fn le(&self, other: &Box<T>) -> bool { *(*self) <= *(*other) } - #[inline] - fn ge(&self, other: &Box<T>) -> bool { *(*self) >= *(*other) } - #[inline] - fn gt(&self, other: &Box<T>) -> bool { *(*self) > *(*other) } -} -// NOTE(stage0): remove impl after a snapshot -#[cfg(stage0)] -impl<T: Ord> Ord for Box<T> { - #[inline] - fn cmp(&self, other: &Box<T>) -> Ordering { - (**self).cmp(&**other) - } -} -// NOTE(stage0): remove impl after a snapshot -#[cfg(stage0)] -impl<T: Eq> Eq for Box<T> {} - -#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot impl<Sized? T: PartialEq> PartialEq for Box<T> { #[inline] fn eq(&self, other: &Box<T>) -> bool { PartialEq::eq(&**self, &**other) } #[inline] fn ne(&self, other: &Box<T>) -> bool { PartialEq::ne(&**self, &**other) } } -#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot impl<Sized? T: PartialOrd> PartialOrd for Box<T> { #[inline] fn partial_cmp(&self, other: &Box<T>) -> Option<Ordering> { @@ -123,14 +85,12 @@ impl<Sized? T: PartialOrd> PartialOrd for Box<T> { #[inline] fn gt(&self, other: &Box<T>) -> bool { PartialOrd::gt(&**self, &**other) } } -#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot impl<Sized? T: Ord> Ord for Box<T> { #[inline] fn cmp(&self, other: &Box<T>) -> Ordering { Ord::cmp(&**self, &**other) } } -#[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot impl<Sized? T: Eq> Eq for Box<T> {} /// Extension methods for an owning `Any` trait object. |
