Skip to content

Commit

Permalink
Remove HashStable impl for ast::Lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoxc committed Feb 7, 2020
1 parent f8fd462 commit 44edbc0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/librustc/ich/impls_syntax.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit 44edbc0

Please sign in to comment.