diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2025-03-18 14:36:28 +0100 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2025-03-21 07:37:56 +0100 |
| commit | 157008d7117ec9ca13b70c38058639524437112f (patch) | |
| tree | a97a03ff94cdd59aec2e227cf4bc48bc7e0cc56c /compiler/rustc_query_system/src/query | |
| parent | 077b8d5c370391d428dbb4d3d037f6e51b1349a8 (diff) | |
| download | rust-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.rs | 3 |
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) } |
