File tree 2 files changed +8
-6
lines changed
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 } ;
1
3
use rustc_data_structures:: AtomicRef ;
2
4
use rustc_index:: vec:: Idx ;
3
5
use rustc_serialize:: { Decoder , Encoder } ;
@@ -207,3 +209,9 @@ impl fmt::Debug for LocalDefId {
207
209
208
210
impl rustc_serialize:: UseSpecializedEncodable for LocalDefId { }
209
211
impl 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
1653
1653
}
1654
1654
}
1655
1655
}
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