about summary refs log tree commit diff
path: root/compiler/rustc_query_system/src
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2024-04-22 14:54:28 +0200
committerMichael Woerister <michaelwoerister@posteo>2024-04-22 14:54:28 +0200
commit6146a51f17f19b557c2baf11a1ae04cbafdd89bb (patch)
treeaaad2a66497751dcca465a80831d0a2bf44a0027 /compiler/rustc_query_system/src
parentc373ec07c42f9c403c3eed5de431907e7ccbd49d (diff)
downloadrust-6146a51f17f19b557c2baf11a1ae04cbafdd89bb.tar.gz
rust-6146a51f17f19b557c2baf11a1ae04cbafdd89bb.zip
Add more context to the forbidden dep-graph read ICE error message.
Diffstat (limited to 'compiler/rustc_query_system/src')
-rw-r--r--compiler/rustc_query_system/src/dep_graph/graph.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/rustc_query_system/src/dep_graph/graph.rs b/compiler/rustc_query_system/src/dep_graph/graph.rs
index af70e2a4264..2b3fa7f6cfa 100644
--- a/compiler/rustc_query_system/src/dep_graph/graph.rs
+++ b/compiler/rustc_query_system/src/dep_graph/graph.rs
@@ -1402,6 +1402,10 @@ fn panic_on_forbidden_read<D: Deps>(data: &DepGraphData<D>, dep_node_index: DepN
 
     panic!(
         "Error: trying to record dependency on DepNode {dep_node} in a \
-         context that does not allow it (e.g. during query deserialization)."
+         context that does not allow it (e.g. during query deserialization). \
+         The most common case of recording a dependency on a DepNode `foo` is \
+         when the correspondng query `foo` is invoked. Invoking queries is not \
+         allowed as part of loading something from the incremental on-disk cache. \
+         See <https://github.com/rust-lang/rust/pull/91919>."
     )
 }