We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0d0ad42 + 68ffa33 commit ffe131fCopy full SHA for ffe131f
compiler/rustc_query_system/src/query/job.rs
@@ -552,7 +552,9 @@ pub fn deadlock<D: DepKind>(query_map: QueryMap<D>, registry: &rayon_core::Regis
552
// which in turn will wait on X causing a deadlock. We have a false dependency from
553
// X to Y due to Rayon waiting and a true dependency from Y to X. The algorithm here
554
// only considers the true dependency and won't detect a cycle.
555
- assert!(found_cycle);
+ if !found_cycle {
556
+ panic!("deadlock detected");
557
+ }
558
559
// FIXME: Ensure this won't cause a deadlock before we return
560
for waiter in wakelist.into_iter() {
0 commit comments