Use new HashStable proc macro

This commit is contained in:
Paul Daniel Faria 2019-11-27 10:54:49 -05:00
parent acb90eb014
commit 38bd3a2342

View File

@ -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<BasicBlock> for ReadOnlyBodyCache<'a, 'tcx> {
CloneTypeFoldableAndLiftImpls! {
Cache,
}
impl_stable_hash_for!(struct BodyCache<'tcx> {
cache,
body,
});