diff options
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ptr.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/libsyntax/ptr.rs b/src/libsyntax/ptr.rs index b5eb8ca94c0..7300ce24954 100644 --- a/src/libsyntax/ptr.rs +++ b/src/libsyntax/ptr.rs @@ -33,8 +33,7 @@ use std::{slice, vec}; use rustc_serialize::{Encodable, Decodable, Encoder, Decoder}; -use rustc_data_structures::stable_hasher::{StableHasher, StableHasherResult, - HashStable}; +use rustc_data_structures::stable_hasher::{StableHasher, HashStable}; /// An owned smart pointer. #[derive(Hash, PartialEq, Eq)] pub struct P<T: ?Sized> { @@ -218,9 +217,7 @@ impl<T: Decodable> Decodable for P<[T]> { impl<CTX, T> HashStable<CTX> for P<T> where T: ?Sized + HashStable<CTX> { - fn hash_stable<W: StableHasherResult>(&self, - hcx: &mut CTX, - hasher: &mut StableHasher<W>) { + fn hash_stable(&self, hcx: &mut CTX, hasher: &mut StableHasher) { (**self).hash_stable(hcx, hasher); } } |
