diff --git a/src/librustc/mir/cache.rs b/src/librustc/mir/cache.rs index f61b7e74d34..b8ef4f753f3 100644 --- a/src/librustc/mir/cache.rs +++ b/src/librustc/mir/cache.rs @@ -114,7 +114,7 @@ impl Cache { } } -#[derive(Clone, Debug, RustcEncodable, RustcDecodable, TypeFoldable)] +#[derive(Clone, Debug, HashStable, RustcEncodable, RustcDecodable, TypeFoldable)] pub struct BodyCache<'tcx> { cache: Cache, body: Body<'tcx>, @@ -297,8 +297,3 @@ impl Index for ReadOnlyBodyCache<'a, 'tcx> { CloneTypeFoldableAndLiftImpls! { Cache, } - -impl_stable_hash_for!(struct BodyCache<'tcx> { - cache, - body, -});