7
7
8
8
use std:: hash:: { Hash , Hasher } ;
9
9
10
- use rustc:: ich:: { StableHashingContextProvider , StableHashingContext } ;
10
+ use rustc:: ich:: StableHashingContextProvider ;
11
11
use rustc:: mir;
12
12
use rustc:: mir:: interpret:: {
13
13
AllocId , Pointer , Scalar ,
@@ -19,7 +19,7 @@ use rustc::ty::{self, TyCtxt};
19
19
use rustc:: ty:: layout:: Align ;
20
20
use rustc_data_structures:: fx:: FxHashSet ;
21
21
use rustc_data_structures:: indexed_vec:: IndexVec ;
22
- use rustc_data_structures:: stable_hasher:: { HashStable , StableHasher , StableHasherResult } ;
22
+ use rustc_data_structures:: stable_hasher:: { HashStable , StableHasher } ;
23
23
use syntax:: ast:: Mutability ;
24
24
use syntax:: source_map:: Span ;
25
25
@@ -366,16 +366,10 @@ impl<'a, 'tcx, Ctx> Snapshot<'a, Ctx> for &'a LocalValue<'tcx>
366
366
}
367
367
}
368
368
369
-
370
- impl < ' a , ' gcx > HashStable < StableHashingContext < ' a > > for LocalValue < ' gcx > {
371
- fn hash_stable < W : StableHasherResult > (
372
- & self ,
373
- hcx : & mut StableHashingContext < ' a > ,
374
- hasher : & mut StableHasher < W > ,
375
- ) {
376
- self . state . hash_stable ( hcx, hasher) ;
377
- }
378
- }
369
+ impl_stable_hash_for ! ( struct LocalValue <' tcx> {
370
+ state,
371
+ layout -> _,
372
+ } ) ;
379
373
380
374
impl < ' a , ' b , ' mir , ' tcx : ' a +' mir > SnapshotContext < ' b >
381
375
for Memory < ' a , ' mir , ' tcx , CompileTimeInterpreter < ' a , ' mir , ' tcx > >
0 commit comments