Skip to content

Commit e340a0e

Browse files
committed
Suggested changes
1 parent 86bd551 commit e340a0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_index/src/bit_set.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ impl<T: Idx> BitRelations<HybridBitSet<T>> for BitSet<T> {
363363
HybridBitSet::Sparse(sparse) => {
364364
let (updated, changed) = dense_sparse_intersect(self, sparse);
365365

366-
// We can't directly assign the BitSet to the SparseBitSet, and
366+
// We can't directly assign the SparseBitSet to the BitSet, and
367367
// doing `*self = updated.to_dense()` would cause a drop / reallocation. Instead,
368368
// the BitSet is cleared and `updated` is copied into `self`.
369369
self.clear();
@@ -1071,7 +1071,7 @@ impl<R: Idx, C: Idx> SparseBitMatrix<R, C> {
10711071
Self { num_columns, rows: IndexVec::new() }
10721072
}
10731073

1074-
pub fn ensure_row(&mut self, row: R) -> &mut HybridBitSet<C> {
1074+
fn ensure_row(&mut self, row: R) -> &mut HybridBitSet<C> {
10751075
// Instantiate any missing rows up to and including row `row` with an
10761076
// empty HybridBitSet.
10771077
self.rows.ensure_contains_elem(row, || None);

0 commit comments

Comments
 (0)