Skip to content

Commit 38bd3a2

Browse files
committed
Use new HashStable proc macro
1 parent acb90eb commit 38bd3a2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/librustc/mir/cache.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl Cache {
114114
}
115115
}
116116

117-
#[derive(Clone, Debug, RustcEncodable, RustcDecodable, TypeFoldable)]
117+
#[derive(Clone, Debug, HashStable, RustcEncodable, RustcDecodable, TypeFoldable)]
118118
pub struct BodyCache<'tcx> {
119119
cache: Cache,
120120
body: Body<'tcx>,
@@ -297,8 +297,3 @@ impl Index<BasicBlock> for ReadOnlyBodyCache<'a, 'tcx> {
297297
CloneTypeFoldableAndLiftImpls! {
298298
Cache,
299299
}
300-
301-
impl_stable_hash_for!(struct BodyCache<'tcx> {
302-
cache,
303-
body,
304-
});

0 commit comments

Comments
 (0)