We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 58b64e7 + 0c844d2 commit 4d9d15cCopy full SHA for 4d9d15c
src/librustc_data_structures/obligation_forest/mod.rs
@@ -333,6 +333,7 @@ impl<O: ForestObligation> ObligationForest<O> {
333
}
334
335
Err(err) => {
336
+ stalled = false;
337
let backtrace = self.error_at(index);
338
errors.push(Error {
339
error: err,
@@ -342,6 +343,16 @@ impl<O: ForestObligation> ObligationForest<O> {
342
343
344
345
346
+ if stalled {
347
+ // There's no need to perform marking, cycle processing and compression when nothing
348
+ // changed.
349
+ return Outcome {
350
+ completed: vec![],
351
+ errors: errors,
352
+ stalled: stalled,
353
+ };
354
+ }
355
+
356
self.mark_as_waiting();
357
self.process_cycles(processor);
358
0 commit comments