about summary refs log tree commit diff
path: root/compiler/rustc_hir/src/stable_hash_impls.rs
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2020-11-27 00:35:22 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2021-03-09 19:23:07 +0100
commit4bab93a03924c4044f20e7aee6e0036f6a96d586 (patch)
treed33a911b21c7ef070fd22bfdba9b10946223b0ff /compiler/rustc_hir/src/stable_hash_impls.rs
parentc298744da7208ebb37a76909eefdce2cc5698f79 (diff)
downloadrust-4bab93a03924c4044f20e7aee6e0036f6a96d586.tar.gz
rust-4bab93a03924c4044f20e7aee6e0036f6a96d586.zip
Remove hir::ForeignItem::attrs.
Diffstat (limited to 'compiler/rustc_hir/src/stable_hash_impls.rs')
-rw-r--r--compiler/rustc_hir/src/stable_hash_impls.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_hir/src/stable_hash_impls.rs b/compiler/rustc_hir/src/stable_hash_impls.rs
index 87b41d36915..5a061559576 100644
--- a/compiler/rustc_hir/src/stable_hash_impls.rs
+++ b/compiler/rustc_hir/src/stable_hash_impls.rs
@@ -178,11 +178,10 @@ impl<HirCtx: crate::HashStableContext> HashStable<HirCtx> for ImplItem<'_> {
 
 impl<HirCtx: crate::HashStableContext> HashStable<HirCtx> for ForeignItem<'_> {
     fn hash_stable(&self, hcx: &mut HirCtx, hasher: &mut StableHasher) {
-        let ForeignItem { def_id: _, ident, ref attrs, ref kind, span, ref vis } = *self;
+        let ForeignItem { def_id: _, ident, ref kind, span, ref vis } = *self;
 
         hcx.hash_hir_item_like(|hcx| {
             ident.name.hash_stable(hcx, hasher);
-            attrs.hash_stable(hcx, hasher);
             kind.hash_stable(hcx, hasher);
             span.hash_stable(hcx, hasher);
             vis.hash_stable(hcx, hasher);