Skip to content

Commit 6989246

Browse files
committed
Reduce BitSet size used in Borrows dataflow analysis
1 parent f7b831a commit 6989246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_borrowck/src/dataflow.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ impl<'tcx> rustc_mir_dataflow::AnalysisDomain<'tcx> for Borrows<'_, 'tcx> {
328328

329329
fn bottom_value(&self, _: &mir::Body<'tcx>) -> Self::Domain {
330330
// bottom = nothing is reserved or activated yet;
331-
BitSet::new_empty(self.borrow_set.len() * 2)
331+
BitSet::new_empty(self.borrow_set.len())
332332
}
333333

334334
fn initialize_start_block(&self, _: &mir::Body<'tcx>, _: &mut Self::Domain) {

0 commit comments

Comments
 (0)