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>2021-01-24 13:17:54 +0100
committerCamille GILLOT <gillot.camille@gmail.com>2021-03-09 19:27:50 +0100
commitc701872a6cd9c3c5b0ef766dc237ff93bc3cc8d9 (patch)
tree6f32f6100bd9867ba3ae1e6b2bc94cf00d39ffff /compiler/rustc_hir/src/stable_hash_impls.rs
parent5474f17011fe92c68e810b2080a7e539dc5687ea (diff)
downloadrust-c701872a6cd9c3c5b0ef766dc237ff93bc3cc8d9.tar.gz
rust-c701872a6cd9c3c5b0ef766dc237ff93bc3cc8d9.zip
Remove hir::Item::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 5b88a69835d..55e87663a1e 100644
--- a/compiler/rustc_hir/src/stable_hash_impls.rs
+++ b/compiler/rustc_hir/src/stable_hash_impls.rs
@@ -181,11 +181,10 @@ impl<HirCtx: crate::HashStableContext> HashStable<HirCtx> for ForeignItem<'_> {
 
 impl<HirCtx: crate::HashStableContext> HashStable<HirCtx> for Item<'_> {
     fn hash_stable(&self, hcx: &mut HirCtx, hasher: &mut StableHasher) {
-        let Item { ident, ref attrs, def_id: _, ref kind, ref vis, span } = *self;
+        let Item { ident, def_id: _, ref kind, ref vis, span } = *self;
 
         hcx.hash_hir_item_like(|hcx| {
             ident.name.hash_stable(hcx, hasher);
-            attrs.hash_stable(hcx, hasher);
             kind.hash_stable(hcx, hasher);
             vis.hash_stable(hcx, hasher);
             span.hash_stable(hcx, hasher);