Skip to content

Commit 4a7fb8b

Browse files
committed
Rename node_index as index.
For consistency with other variables in this file.
1 parent 3b506d9 commit 4a7fb8b

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,8 @@ impl<O: ForestObligation> ObligationForest<O> {
373373
.collect()
374374
}
375375

376-
fn insert_into_error_cache(&mut self, node_index: usize) {
377-
let node = &self.nodes[node_index];
376+
fn insert_into_error_cache(&mut self, index: usize) {
377+
let node = &self.nodes[index];
378378
self.error_cache
379379
.entry(node.obligation_tree_id)
380380
.or_default()

0 commit comments

Comments
 (0)