about summary refs log tree commit diff
path: root/compiler/rustc_query_system/src/query
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2025-03-18 14:36:28 +0100
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2025-03-21 07:37:56 +0100
commit157008d7117ec9ca13b70c38058639524437112f (patch)
treea97a03ff94cdd59aec2e227cf4bc48bc7e0cc56c /compiler/rustc_query_system/src/query
parent077b8d5c370391d428dbb4d3d037f6e51b1349a8 (diff)
downloadrust-157008d7117ec9ca13b70c38058639524437112f.tar.gz
rust-157008d7117ec9ca13b70c38058639524437112f.zip
Update comments
Diffstat (limited to 'compiler/rustc_query_system/src/query')
-rw-r--r--compiler/rustc_query_system/src/query/plumbing.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_query_system/src/query/plumbing.rs b/compiler/rustc_query_system/src/query/plumbing.rs
index 68590854343..dc1d6f760fa 100644
--- a/compiler/rustc_query_system/src/query/plumbing.rs
+++ b/compiler/rustc_query_system/src/query/plumbing.rs
@@ -251,7 +251,10 @@ where
     Qcx: QueryContext,
 {
     let (query_map, complete) = qcx.collect_active_jobs();
+    // Ensure there was no errors collecting all active jobs.
+    // We need the complete map to ensure we find a cycle to break.
     assert!(complete, "failed to collect active queries");
+
     let error = try_execute.find_cycle_in_stack(query_map, &qcx.current_query_job(), span);
     (mk_cycle(query, qcx, error), None)
 }