We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27c7c23 commit aa10abbCopy full SHA for aa10abb
src/librustc_data_structures/obligation_forest/mod.rs
@@ -507,8 +507,8 @@ impl<O: ForestObligation> ObligationForest<O> {
507
let node = &self.nodes[index];
508
match node.state.get() {
509
NodeState::OnDfsStack => {
510
- let index = stack.iter().rposition(|&n| n == index).unwrap();
511
- processor.process_backedge(stack[index..].iter().map(GetObligation(&self.nodes)),
+ let rpos = stack.iter().rposition(|&n| n == index).unwrap();
+ processor.process_backedge(stack[rpos..].iter().map(GetObligation(&self.nodes)),
512
PhantomData);
513
}
514
NodeState::Success => {
0 commit comments