about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWill Crichton <wcrichto@cs.stanford.edu>2021-08-27 16:21:25 -0700
committerWill Crichton <wcrichto@cs.stanford.edu>2021-08-27 16:21:25 -0700
commite340a0e249c2efc069235c9db47e47c3e136570c (patch)
treeded59407e71dee3b2d1faf161b404364f21cb2be
parent86bd551e4c8954330e5e0d71c09c4ecbf514a5b6 (diff)
downloadrust-e340a0e249c2efc069235c9db47e47c3e136570c.tar.gz
rust-e340a0e249c2efc069235c9db47e47c3e136570c.zip
Suggested changes
-rw-r--r--compiler/rustc_index/src/bit_set.rs4
1 files 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<T: Idx> BitRelations<HybridBitSet<T>> for BitSet<T> {
             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<R: Idx, C: Idx> SparseBitMatrix<R, C> {
         Self { num_columns, rows: IndexVec::new() }
     }
 
-    pub fn ensure_row(&mut self, row: R) -> &mut HybridBitSet<C> {
+    fn ensure_row(&mut self, row: R) -> &mut HybridBitSet<C> {
         // Instantiate any missing rows up to and including row `row` with an
         // empty HybridBitSet.
         self.rows.ensure_contains_elem(row, || None);