File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1+ use crate :: HashStableContext ;
2+ use rustc_data_structures:: stable_hasher:: { HashStable , StableHasher } ;
13use rustc_data_structures:: AtomicRef ;
24use rustc_index:: vec:: Idx ;
35use rustc_serialize:: { Decoder , Encoder } ;
@@ -207,3 +209,9 @@ impl fmt::Debug for LocalDefId {
207209
208210impl rustc_serialize:: UseSpecializedEncodable for LocalDefId { }
209211impl rustc_serialize:: UseSpecializedDecodable for LocalDefId { }
212+
213+ impl < CTX : HashStableContext > HashStable < CTX > for DefId {
214+ fn hash_stable ( & self , hcx : & mut CTX , hasher : & mut StableHasher ) {
215+ hcx. hash_def_id ( * self , hasher)
216+ }
217+ }
Original file line number Diff line number Diff line change @@ -1653,9 +1653,3 @@ where
16531653 }
16541654 }
16551655}
1656-
1657- impl < CTX : HashStableContext > HashStable < CTX > for DefId {
1658- fn hash_stable ( & self , hcx : & mut CTX , hasher : & mut StableHasher ) {
1659- hcx. hash_def_id ( * self , hasher)
1660- }
1661- }
You can’t perform that action at this time.
0 commit comments