Remove HashStable impl for ast::Lifetime

This commit is contained in:
John Kåre Alsaker 2020-02-07 08:07:06 +01:00
parent f8fd462447
commit 44edbc0e90
1 changed files with 0 additions and 7 deletions

View File

@ -12,13 +12,6 @@ use smallvec::SmallVec;
impl<'ctx> rustc_target::HashStableContext for StableHashingContext<'ctx> {}
impl<'a> HashStable<StableHashingContext<'a>> for ast::Lifetime {
fn hash_stable(&self, hcx: &mut StableHashingContext<'a>, hasher: &mut StableHasher) {
self.id.hash_stable(hcx, hasher);
self.ident.hash_stable(hcx, hasher);
}
}
impl<'a> HashStable<StableHashingContext<'a>> for [ast::Attribute] {
fn hash_stable(&self, hcx: &mut StableHashingContext<'a>, hasher: &mut StableHasher) {
if self.len() == 0 {