Skip to content

Commit e0d6581

Browse files
committed
Workaround another hash cache coherency issue in ty::list::RawList
1 parent 00c421e commit e0d6581

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

compiler/rustc_middle/src/ty/impls_ty.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ where
3535
return hash;
3636
}
3737

38-
let mut hasher = GenericStableHasher::<H>::new();
38+
// FIXME: This caching doesn't work with a generic stable hasher.
39+
// We therefor force the use of `StableHasher`. We should figure out
40+
// a way to have to either cache for each hasher or only cache with
41+
// the primary `StableHasher` hasher.
42+
let mut hasher = StableHasher::new();
3943
self[..].hash_stable(hcx, &mut hasher);
4044

4145
let hash: Fingerprint = hasher.finish();

0 commit comments

Comments
 (0)