Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 0ca51b6

Browse files
committed
Make SparseBitMatrix::ensure_row public to enable general mutation of rows
1 parent a49e38e commit 0ca51b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_index/src/bit_set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ impl<R: Idx, C: Idx> SparseBitMatrix<R, C> {
956956
Self { num_columns, rows: IndexVec::new() }
957957
}
958958

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

0 commit comments

Comments
 (0)