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/libstd/sys/common | |
| 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/libstd/sys/common')
| -rw-r--r-- | src/libstd/sys/common/wtf8.rs | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/libstd/sys/common/wtf8.rs b/src/libstd/sys/common/wtf8.rs index ca3ae1a7a34..9119a3c60d8 100644 --- a/src/libstd/sys/common/wtf8.rs +++ b/src/libstd/sys/common/wtf8.rs @@ -32,7 +32,6 @@ use borrow::Cow; use cmp; use fmt; use hash::{Hash, Hasher}; -#[cfg(stage0)] use hash::Writer; use iter::{FromIterator, IntoIterator}; use mem; use num::Int; @@ -796,14 +795,6 @@ impl<'a> Iterator for EncodeWide<'a> { } } -#[cfg(stage0)] -impl<S: Writer + Hasher> Hash<S> for CodePoint { - #[inline] - fn hash(&self, state: &mut S) { - self.value.hash(state) - } -} -#[cfg(not(stage0))] impl Hash for CodePoint { #[inline] fn hash<H: Hasher>(&self, state: &mut H) { @@ -811,15 +802,6 @@ impl Hash for CodePoint { } } -#[cfg(stage0)] -impl<S: Writer + Hasher> Hash<S> for Wtf8Buf { - #[inline] - fn hash(&self, state: &mut S) { - state.write(&self.bytes); - 0xfeu8.hash(state) - } -} -#[cfg(not(stage0))] impl Hash for Wtf8Buf { #[inline] fn hash<H: Hasher>(&self, state: &mut H) { @@ -828,15 +810,6 @@ impl Hash for Wtf8Buf { } } -#[cfg(stage0)] -impl<'a, S: Writer + Hasher> Hash<S> for Wtf8 { - #[inline] - fn hash(&self, state: &mut S) { - state.write(&self.bytes); - 0xfeu8.hash(state) - } -} -#[cfg(not(stage0))] impl Hash for Wtf8 { #[inline] fn hash<H: Hasher>(&self, state: &mut H) { |
