Skip to content

Commit 4409a51

Browse files
committed
Recover comment.
1 parent 8b4fa75 commit 4409a51

File tree

1 file changed

+5
-0
lines changed
  • compiler/rustc_query_system/src/dep_graph

1 file changed

+5
-0
lines changed

compiler/rustc_query_system/src/dep_graph/graph.rs

+5
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,11 @@ impl<K: DepKind> DepGraphData<K> {
344344
task: fn(Ctxt, A) -> R,
345345
hash_result: Option<fn(&mut StableHashingContext<'_>, &R) -> Fingerprint>,
346346
) -> (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).
347352
self.assert_nonexistent_node(&key, || {
348353
format!(
349354
"forcing query with already existing `DepNode`\n\

0 commit comments

Comments
 (0)