Skip to content

Commit aa10abb

Browse files
committed
Rename a variable.
Because the meaning of this `index` variable is quite different to all the other `index` variables in this file.
1 parent 27c7c23 commit aa10abb

File tree

1 file changed

+2
-2
lines changed
  • src/librustc_data_structures/obligation_forest

1 file changed

+2
-2
lines changed

src/librustc_data_structures/obligation_forest/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -507,8 +507,8 @@ impl<O: ForestObligation> ObligationForest<O> {
507507
let node = &self.nodes[index];
508508
match node.state.get() {
509509
NodeState::OnDfsStack => {
510-
let index = stack.iter().rposition(|&n| n == index).unwrap();
511-
processor.process_backedge(stack[index..].iter().map(GetObligation(&self.nodes)),
510+
let rpos = stack.iter().rposition(|&n| n == index).unwrap();
511+
processor.process_backedge(stack[rpos..].iter().map(GetObligation(&self.nodes)),
512512
PhantomData);
513513
}
514514
NodeState::Success => {

0 commit comments

Comments
 (0)