File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -219,12 +219,9 @@ impl<'a> ToStableHashKey<StableHashingContext<'a>> for hir::HirId {
219219 }
220220}
221221
222- impl < ' a > ToStableHashKey < StableHashingContext < ' a > > for ast:: NodeId {
223- type KeyType = Self ;
224-
225- #[ inline]
226- fn to_stable_hash_key ( & self , _: & StableHashingContext < ' a > ) -> Self {
227- * self
222+ impl < ' a > HashStable < StableHashingContext < ' a > > for ast:: NodeId {
223+ fn hash_stable ( & self , _: & mut StableHashingContext < ' a > , _: & mut StableHasher ) {
224+ panic ! ( "Node IDs should not appear in incremental state" ) ;
228225 }
229226}
230227
Original file line number Diff line number Diff line change 1- use rustc_macros:: HashStable_Generic ;
21use rustc_serialize:: { Decoder , Encoder } ;
32use rustc_span:: ExpnId ;
43use std:: fmt;
54
65rustc_index:: newtype_index! {
7- #[ derive( HashStable_Generic ) ]
86 pub struct NodeId {
97 ENCODABLE = custom
108 DEBUG_FORMAT = "NodeId({})"
You can’t perform that action at this time.
0 commit comments