diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-02-19 18:35:52 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-02-20 22:17:17 -0800 |
| commit | 6686f7aa471f162697d08a78ad4d04d3c0e9612c (patch) | |
| tree | 038bc233524ca60ad55a6303c8601170a8a1039b /src/libstd/ffi/os_str.rs | |
| parent | 522d09dfecbeca1595f25ac58c6d0178bbd21d7d (diff) | |
| download | rust-6686f7aa471f162697d08a78ad4d04d3c0e9612c.tar.gz rust-6686f7aa471f162697d08a78ad4d04d3c0e9612c.zip | |
Register new snapshots
Diffstat (limited to 'src/libstd/ffi/os_str.rs')
| -rw-r--r-- | src/libstd/ffi/os_str.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/libstd/ffi/os_str.rs b/src/libstd/ffi/os_str.rs index 84149a2eb8e..fe0df1728ef 100644 --- a/src/libstd/ffi/os_str.rs +++ b/src/libstd/ffi/os_str.rs @@ -41,7 +41,6 @@ use string::{String, CowString}; use ops; use cmp; use hash::{Hash, Hasher}; -#[cfg(stage0)] use hash::Writer; use old_path::{Path, GenericPath}; use sys::os_str::{Buf, Slice}; @@ -163,14 +162,6 @@ impl Ord for OsString { } } -#[cfg(stage0)] -impl<'a, S: Hasher + Writer> Hash<S> for OsString { - #[inline] - fn hash(&self, state: &mut S) { - (&**self).hash(state) - } -} -#[cfg(not(stage0))] #[stable(feature = "rust1", since = "1.0.0")] impl Hash for OsString { #[inline] @@ -263,14 +254,6 @@ impl Ord for OsStr { fn cmp(&self, other: &OsStr) -> cmp::Ordering { self.bytes().cmp(other.bytes()) } } -#[cfg(stage0)] -impl<'a, S: Hasher + Writer> Hash<S> for OsStr { - #[inline] - fn hash(&self, state: &mut S) { - self.bytes().hash(state) - } -} -#[cfg(not(stage0))] #[stable(feature = "rust1", since = "1.0.0")] impl Hash for OsStr { #[inline] |
