@@ -9,7 +9,6 @@ use crate::ich::{StableHashingContext, NodeIdHashingMode, Fingerprint};
9
9
use rustc_data_structures:: stable_hasher:: { HashStable , ToStableHashKey , StableHasher } ;
10
10
use smallvec:: SmallVec ;
11
11
use std:: mem;
12
- use syntax:: ast;
13
12
use syntax:: attr;
14
13
15
14
impl < ' a > HashStable < StableHashingContext < ' a > > for DefId {
@@ -134,10 +133,6 @@ impl<'a> HashStable<StableHashingContext<'a>> for hir::Ty {
134
133
}
135
134
}
136
135
137
- impl_stable_hash_for_spanned ! ( hir:: BinOpKind ) ;
138
-
139
- impl_stable_hash_for_spanned ! ( ast:: Name ) ;
140
-
141
136
impl < ' a > HashStable < StableHashingContext < ' a > > for hir:: Expr {
142
137
fn hash_stable ( & self , hcx : & mut StableHashingContext < ' a > , hasher : & mut StableHasher ) {
143
138
hcx. while_hashing_hir_bodies ( true , |hcx| {
@@ -155,8 +150,6 @@ impl<'a> HashStable<StableHashingContext<'a>> for hir::Expr {
155
150
}
156
151
}
157
152
158
- impl_stable_hash_for_spanned ! ( usize ) ;
159
-
160
153
impl < ' a > HashStable < StableHashingContext < ' a > > for hir:: TraitItem {
161
154
fn hash_stable ( & self , hcx : & mut StableHashingContext < ' a > , hasher : & mut StableHasher ) {
162
155
let hir:: TraitItem {
@@ -225,8 +218,6 @@ impl<'a> HashStable<StableHashingContext<'a>> for hir::VisibilityKind {
225
218
}
226
219
}
227
220
228
- impl_stable_hash_for_spanned ! ( hir:: VisibilityKind ) ;
229
-
230
221
impl < ' a > HashStable < StableHashingContext < ' a > > for hir:: Mod {
231
222
fn hash_stable ( & self , hcx : & mut StableHashingContext < ' a > , hasher : & mut StableHasher ) {
232
223
let hir:: Mod {
@@ -254,9 +245,6 @@ impl<'a> HashStable<StableHashingContext<'a>> for hir::Mod {
254
245
}
255
246
}
256
247
257
- impl_stable_hash_for_spanned ! ( hir:: Variant ) ;
258
-
259
-
260
248
impl < ' a > HashStable < StableHashingContext < ' a > > for hir:: Item {
261
249
fn hash_stable ( & self , hcx : & mut StableHashingContext < ' a > , hasher : & mut StableHasher ) {
262
250
let hir:: Item {
0 commit comments