Skip to content

Commit

Permalink
Rename a variable.
Browse files Browse the repository at this point in the history
Because the meaning of this `index` variable is quite different to all
the other `index` variables in this file.
  • Loading branch information
nnethercote committed Sep 20, 2019
1 parent 27c7c23 commit aa10abb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_data_structures/obligation_forest/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -507,8 +507,8 @@ impl<O: ForestObligation> ObligationForest<O> {
let node = &self.nodes[index];
match node.state.get() {
NodeState::OnDfsStack => {
let index = stack.iter().rposition(|&n| n == index).unwrap();
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)),
PhantomData);
}
NodeState::Success => {
Expand Down

0 comments on commit aa10abb

Please sign in to comment.