diff options
| author | vlad20012 <beskvlad@gmail.com> | 2023-05-09 18:50:13 +0200 |
|---|---|---|
| committer | vlad20012 <beskvlad@gmail.com> | 2023-05-09 18:50:13 +0200 |
| commit | 6989246645ca911bebed10bd0d4b91a9f41406a8 (patch) | |
| tree | 494a2ffe889bcda9e4fbd12611c337c6ae1926d1 | |
| parent | f7b831ac8a897273f78b9f47165cf8e54066ce4b (diff) | |
| download | rust-6989246645ca911bebed10bd0d4b91a9f41406a8.tar.gz rust-6989246645ca911bebed10bd0d4b91a9f41406a8.zip | |
Reduce BitSet size used in `Borrows` dataflow analysis
| -rw-r--r-- | compiler/rustc_borrowck/src/dataflow.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_borrowck/src/dataflow.rs b/compiler/rustc_borrowck/src/dataflow.rs index 94939c7e4cd..167f245361a 100644 --- a/compiler/rustc_borrowck/src/dataflow.rs +++ b/compiler/rustc_borrowck/src/dataflow.rs @@ -328,7 +328,7 @@ impl<'tcx> rustc_mir_dataflow::AnalysisDomain<'tcx> for Borrows<'_, 'tcx> { fn bottom_value(&self, _: &mir::Body<'tcx>) -> Self::Domain { // bottom = nothing is reserved or activated yet; - BitSet::new_empty(self.borrow_set.len() * 2) + BitSet::new_empty(self.borrow_set.len()) } fn initialize_start_block(&self, _: &mir::Body<'tcx>, _: &mut Self::Domain) { |
