We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
NodeId::hash_stable
1 parent fa575bc commit 20060c6Copy full SHA for 20060c6
1 file changed
compiler/rustc_ast/src/node_id.rs
@@ -22,6 +22,8 @@ rustc_index::newtype_index! {
22
impl HashStable for NodeId {
23
#[inline]
24
fn hash_stable<Hcx: HashStableContext>(&self, _: &mut Hcx, _: &mut StableHasher) {
25
+ // This impl is never called but is necessary for types implementing `HashStable` such as
26
+ // `MainDefinition` and `DocLinkResMap` (both of which occur in `ResolverGlobalCtxt`).
27
panic!("Node IDs should not appear in incremental state");
28
}
29
0 commit comments