From 38bd3a23421e3f772004e0886ad80848d8bd03b6 Mon Sep 17 00:00:00 2001 From: Paul Daniel Faria Date: Wed, 27 Nov 2019 10:54:49 -0500 Subject: [PATCH] Use new HashStable proc macro --- src/librustc/mir/cache.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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, -});