File tree 2 files changed +3
-8
lines changed
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 {
219
219
}
220
220
}
221
221
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" ) ;
228
225
}
229
226
}
230
227
Original file line number Diff line number Diff line change 1
- use rustc_macros:: HashStable_Generic ;
2
1
use rustc_serialize:: { Decoder , Encoder } ;
3
2
use rustc_span:: ExpnId ;
4
3
use std:: fmt;
5
4
6
5
rustc_index:: newtype_index! {
7
- #[ derive( HashStable_Generic ) ]
8
6
pub struct NodeId {
9
7
ENCODABLE = custom
10
8
DEBUG_FORMAT = "NodeId({})"
You can’t perform that action at this time.
0 commit comments