@@ -2,7 +2,7 @@ use super::possible_origin::PossibleOriginVisitor;
2
2
use super :: transitive_relation:: TransitiveRelation ;
3
3
use crate :: ty:: is_copy;
4
4
use rustc_data_structures:: fx:: FxHashMap ;
5
- use rustc_index:: bit_set:: { BitSet , HybridBitSet } ;
5
+ use rustc_index:: bit_set:: BitSet ;
6
6
use rustc_lint:: LateContext ;
7
7
use rustc_middle:: mir:: visit:: Visitor as _;
8
8
use rustc_middle:: mir:: { self , Mutability } ;
@@ -21,14 +21,14 @@ struct PossibleBorrowerVisitor<'a, 'b, 'tcx> {
21
21
possible_borrower : TransitiveRelation ,
22
22
body : & ' b mir:: Body < ' tcx > ,
23
23
cx : & ' a LateContext < ' tcx > ,
24
- possible_origin : FxHashMap < mir:: Local , HybridBitSet < mir:: Local > > ,
24
+ possible_origin : FxHashMap < mir:: Local , BitSet < mir:: Local > > ,
25
25
}
26
26
27
27
impl < ' a , ' b , ' tcx > PossibleBorrowerVisitor < ' a , ' b , ' tcx > {
28
28
fn new (
29
29
cx : & ' a LateContext < ' tcx > ,
30
30
body : & ' b mir:: Body < ' tcx > ,
31
- possible_origin : FxHashMap < mir:: Local , HybridBitSet < mir:: Local > > ,
31
+ possible_origin : FxHashMap < mir:: Local , BitSet < mir:: Local > > ,
32
32
) -> Self {
33
33
Self {
34
34
possible_borrower : TransitiveRelation :: default ( ) ,
@@ -119,7 +119,7 @@ impl<'tcx> mir::visit::Visitor<'tcx> for PossibleBorrowerVisitor<'_, '_, 'tcx> {
119
119
let mut mutable_variables: Vec < mir:: Local > = mutable_borrowers
120
120
. iter ( )
121
121
. filter_map ( |r| self . possible_origin . get ( r) )
122
- . flat_map ( HybridBitSet :: iter)
122
+ . flat_map ( BitSet :: iter)
123
123
. collect ( ) ;
124
124
125
125
if ContainsRegion . visit_ty ( self . body . local_decls [ * dest] . ty ) . is_break ( ) {
@@ -171,7 +171,7 @@ fn rvalue_locals(rvalue: &mir::Rvalue<'_>, mut visit: impl FnMut(mir::Local)) {
171
171
#[ allow( clippy:: module_name_repetitions) ]
172
172
pub struct PossibleBorrowerMap < ' b , ' tcx > {
173
173
/// Mapping `Local -> its possible borrowers`
174
- pub map : FxHashMap < mir:: Local , HybridBitSet < mir:: Local > > ,
174
+ pub map : FxHashMap < mir:: Local , BitSet < mir:: Local > > ,
175
175
maybe_live : ResultsCursor < ' b , ' tcx , MaybeStorageLive < ' tcx > > ,
176
176
// Caches to avoid allocation of `BitSet` on every query
177
177
pub bitset : ( BitSet < mir:: Local > , BitSet < mir:: Local > ) ,
0 commit comments