diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-02-22 02:16:12 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-02-22 02:16:12 +0530 |
| commit | 686648d15546cead638ababda5a70d8f36fbc78a (patch) | |
| tree | 038fef94f8b208553ce2bc0409d9f051bc88693d /src/liballoc | |
| parent | 5d7b216f40d13750a31a22ecc20498494f76cbc6 (diff) | |
| parent | 6686f7aa471f162697d08a78ad4d04d3c0e9612c (diff) | |
| download | rust-686648d15546cead638ababda5a70d8f36fbc78a.tar.gz rust-686648d15546cead638ababda5a70d8f36fbc78a.zip | |
Rollup merge of #22584 - alexcrichton:snapshots, r=Gankro
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/arc.rs | 7 | ||||
| -rw-r--r-- | src/liballoc/boxed.rs | 8 | ||||
| -rw-r--r-- | src/liballoc/rc.rs | 8 |
3 files changed, 0 insertions, 23 deletions
diff --git a/src/liballoc/arc.rs b/src/liballoc/arc.rs index 934e6ab2159..cc49164ef91 100644 --- a/src/liballoc/arc.rs +++ b/src/liballoc/arc.rs @@ -598,13 +598,6 @@ impl<T: Default + Sync + Send> Default for Arc<T> { fn default() -> Arc<T> { Arc::new(Default::default()) } } -#[cfg(stage0)] -impl<H: Hasher, T: Hash<H>> Hash<H> for Arc<T> { - fn hash(&self, state: &mut H) { - (**self).hash(state) - } -} -#[cfg(not(stage0))] #[stable(feature = "rust1", since = "1.0.0")] impl<T: Hash> Hash for Arc<T> { fn hash<H: Hasher>(&self, state: &mut H) { diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs index a3516bd667b..ce889c79601 100644 --- a/src/liballoc/boxed.rs +++ b/src/liballoc/boxed.rs @@ -220,14 +220,6 @@ impl<T: ?Sized + Ord> Ord for Box<T> { #[stable(feature = "rust1", since = "1.0.0")] impl<T: ?Sized + Eq> Eq for Box<T> {} -#[cfg(stage0)] -impl<S: hash::Hasher, T: ?Sized + Hash<S>> Hash<S> for Box<T> { - #[inline] - fn hash(&self, state: &mut S) { - (**self).hash(state); - } -} -#[cfg(not(stage0))] #[stable(feature = "rust1", since = "1.0.0")] impl<T: ?Sized + Hash> Hash for Box<T> { fn hash<H: hash::Hasher>(&self, state: &mut H) { diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs index 9d395115431..ed7d34de7a6 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -592,14 +592,6 @@ impl<T: Ord> Ord for Rc<T> { } // FIXME (#18248) Make `T` `Sized?` -#[cfg(stage0)] -impl<S: Hasher, T: Hash<S>> Hash<S> for Rc<T> { - #[inline] - fn hash(&self, state: &mut S) { - (**self).hash(state); - } -} -#[cfg(not(stage0))] #[stable(feature = "rust1", since = "1.0.0")] impl<T: Hash> Hash for Rc<T> { fn hash<H: Hasher>(&self, state: &mut H) { |
