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.
process_obligations()
1 parent 85a56cb commit 7130e6cCopy full SHA for 7130e6c
src/librustc_data_structures/obligation_forest/mod.rs
@@ -404,10 +404,10 @@ impl<O: ForestObligation> ObligationForest<O> {
404
// `self.active_cache`. This means that `self.active_cache` can get
405
// out of sync with `nodes`. It's not very common, but it does
406
// happen, and code in `compress` has to allow for it.
407
- let result = match node.state.get() {
408
- NodeState::Pending => processor.process_obligation(&mut node.obligation),
409
- _ => continue
410
- };
+ if node.state.get() != NodeState::Pending {
+ continue;
+ }
+ let result = processor.process_obligation(&mut node.obligation);
411
412
debug!("process_obligations: node {} got result {:?}", index, result);
413
0 commit comments