We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b4fa75 commit 4409a51Copy full SHA for 4409a51
compiler/rustc_query_system/src/dep_graph/graph.rs
@@ -344,6 +344,11 @@ impl<K: DepKind> DepGraphData<K> {
344
task: fn(Ctxt, A) -> R,
345
hash_result: Option<fn(&mut StableHashingContext<'_>, &R) -> Fingerprint>,
346
) -> (R, DepNodeIndex) {
347
+ // If the following assertion triggers, it can have two reasons:
348
+ // 1. Something is wrong with DepNode creation, either here or
349
+ // in `DepGraph::try_mark_green()`.
350
+ // 2. Two distinct query keys get mapped to the same `DepNode`
351
+ // (see for example #48923).
352
self.assert_nonexistent_node(&key, || {
353
format!(
354
"forcing query with already existing `DepNode`\n\
0 commit comments