From 0ca51b6b66d081d8fcbcf9d715f9be8e22b0d609 Mon Sep 17 00:00:00 2001 From: Will Crichton Date: Mon, 23 Aug 2021 16:13:17 -0700 Subject: [PATCH] Make SparseBitMatrix::ensure_row public to enable general mutation of rows --- compiler/rustc_index/src/bit_set.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 SparseBitMatrix { Self { num_columns, rows: IndexVec::new() } } - fn ensure_row(&mut self, row: R) -> &mut HybridBitSet { + pub 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);