diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-09-26 18:54:39 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-09-28 11:47:36 -0400 |
| commit | 14a5aefb01bb4f18749ab56cd9fd37bf93c86a37 (patch) | |
| tree | 01239699d8cb998460c98b985f52df26a9768398 /src/libsyntax | |
| parent | f60e58e57580d47e82a374bad73214b6bfec085a (diff) | |
| download | rust-14a5aefb01bb4f18749ab56cd9fd37bf93c86a37.tar.gz rust-14a5aefb01bb4f18749ab56cd9fd37bf93c86a37.zip | |
Switch over all StableHash impls to new format
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); } } |
