We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 486a387 commit c4bcac6Copy full SHA for c4bcac6
compiler/rustc_query_system/src/dep_graph/graph.rs
@@ -970,6 +970,7 @@ impl<K: DepKind> DepGraph<K> {
970
}
971
972
pub(crate) fn next_virtual_depnode_index(&self) -> DepNodeIndex {
973
+ debug_assert!(self.data.is_none());
974
let index = self.virtual_dep_node_index.fetch_add(1, Relaxed);
975
DepNodeIndex::from_u32(index)
976
compiler/rustc_query_system/src/query/plumbing.rs
@@ -429,6 +429,8 @@ where
429
Q: QueryConfig<Qcx>,
430
Qcx: QueryContext,
431
{
432
+ debug_assert!(!qcx.dep_context().dep_graph().is_fully_enabled());
433
+
434
// Fingerprint the key, just to assert that it doesn't
435
// have anything we don't consider hashable
436
if cfg!(debug_assertions) {
0 commit comments