about summary refs log tree commit diff
path: root/src/librustc_data_structures
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2019-09-24 13:26:47 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2019-09-30 05:23:07 +1000
commit4a7fb8b13ad9a42e96ebbeaef8ddc1ebca3d65c1 (patch)
treeb60a7fd930d6b5d9745bfe33ebd99cdd6d141578 /src/librustc_data_structures
parent3b506d9694beaed3b07c9a4fec472646c9e9e17d (diff)
downloadrust-4a7fb8b13ad9a42e96ebbeaef8ddc1ebca3d65c1.tar.gz
rust-4a7fb8b13ad9a42e96ebbeaef8ddc1ebca3d65c1.zip
Rename `node_index` as `index`.
For consistency with other variables in this file.
Diffstat (limited to 'src/librustc_data_structures')
-rw-r--r--src/librustc_data_structures/obligation_forest/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_data_structures/obligation_forest/mod.rs b/src/librustc_data_structures/obligation_forest/mod.rs
index 3cbd955a728..de584a22e9c 100644
--- a/src/librustc_data_structures/obligation_forest/mod.rs
+++ b/src/librustc_data_structures/obligation_forest/mod.rs
@@ -373,8 +373,8 @@ impl<O: ForestObligation> ObligationForest<O> {
             .collect()
     }
 
-    fn insert_into_error_cache(&mut self, node_index: usize) {
-        let node = &self.nodes[node_index];
+    fn insert_into_error_cache(&mut self, index: usize) {
+        let node = &self.nodes[index];
         self.error_cache
             .entry(node.obligation_tree_id)
             .or_default()