Skip to content

Commit

Permalink
Delegate SmallVec's stable_hash to array's stable_hash.
Browse files Browse the repository at this point in the history
  • Loading branch information
jespersm committed May 4, 2019
1 parent 6802082 commit 6da7649
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/librustc_data_structures/stable_hasher.rs
Expand Up @@ -324,9 +324,7 @@ impl<A, CTX> HashStable<CTX> for SmallVec<[A; 1]> where A: HashStable<CTX> {
fn hash_stable<W: StableHasherResult>(&self,
ctx: &mut CTX,
hasher: &mut StableHasher<W>) {
for item in self {
item.hash_stable(ctx, hasher);
}
(&self[..]).hash_stable(ctx, hasher);
}
}

Expand Down

0 comments on commit 6da7649

Please sign in to comment.