From e340a0e249c2efc069235c9db47e47c3e136570c Mon Sep 17 00:00:00 2001 From: Will Crichton Date: Fri, 27 Aug 2021 16:21:25 -0700 Subject: [PATCH] Suggested changes --- compiler/rustc_index/src/bit_set.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_index/src/bit_set.rs b/compiler/rustc_index/src/bit_set.rs index 8903ed9d9e2..aeb3f9970ab 100644 --- a/compiler/rustc_index/src/bit_set.rs +++ b/compiler/rustc_index/src/bit_set.rs @@ -363,7 +363,7 @@ impl BitRelations> for BitSet { HybridBitSet::Sparse(sparse) => { let (updated, changed) = dense_sparse_intersect(self, sparse); - // We can't directly assign the BitSet to the SparseBitSet, and + // We can't directly assign the SparseBitSet to the BitSet, and // doing `*self = updated.to_dense()` would cause a drop / reallocation. Instead, // the BitSet is cleared and `updated` is copied into `self`. self.clear(); @@ -1071,7 +1071,7 @@ impl SparseBitMatrix { Self { num_columns, rows: IndexVec::new() } } - pub fn ensure_row(&mut self, row: R) -> &mut HybridBitSet { + fn ensure_row(&mut self, row: R) -> &mut HybridBitSet { // Instantiate any missing rows up to and including row `row` with an // empty HybridBitSet. self.rows.ensure_contains_elem(row, || None);