mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 17:18:32 +03:00
Tweak the control flow in process_obligations().
This commit is contained in:
@@ -404,10 +404,10 @@ pub fn process_obligations<P>(&mut self, processor: &mut P, do_completed: DoComp
|
||||
// `self.active_cache`. This means that `self.active_cache` can get
|
||||
// out of sync with `nodes`. It's not very common, but it does
|
||||
// happen, and code in `compress` has to allow for it.
|
||||
let result = match node.state.get() {
|
||||
NodeState::Pending => processor.process_obligation(&mut node.obligation),
|
||||
_ => continue
|
||||
};
|
||||
if node.state.get() != NodeState::Pending {
|
||||
continue;
|
||||
}
|
||||
let result = processor.process_obligation(&mut node.obligation);
|
||||
|
||||
debug!("process_obligations: node {} got result {:?}", index, result);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user