about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWill Crichton <wcrichto@cs.stanford.edu>2021-08-23 16:13:17 -0700
committerWill Crichton <wcrichto@cs.stanford.edu>2021-08-23 16:13:17 -0700
commit0ca51b6b66d081d8fcbcf9d715f9be8e22b0d609 (patch)
tree5fab7e40cad21a743e562e34885d1a66a8deceb3
parenta49e38e672c60da788360e088f00ad12353e3913 (diff)
downloadrust-0ca51b6b66d081d8fcbcf9d715f9be8e22b0d609.tar.gz
rust-0ca51b6b66d081d8fcbcf9d715f9be8e22b0d609.zip
Make SparseBitMatrix::ensure_row public to enable general mutation of rows
-rw-r--r--compiler/rustc_index/src/bit_set.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_index/src/bit_set.rs b/compiler/rustc_index/src/bit_set.rs
index df777502c44..282bed274e6 100644
--- a/compiler/rustc_index/src/bit_set.rs
+++ b/compiler/rustc_index/src/bit_set.rs
@@ -956,7 +956,7 @@ impl<R: Idx, C: Idx> SparseBitMatrix<R, C> {
         Self { num_columns, rows: IndexVec::new() }
     }
 
-    fn ensure_row(&mut self, row: R) -> &mut HybridBitSet<C> {
+    pub 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);