@@ -121,24 +121,24 @@ rustc_index::newtype_index! {
121
121
/// `BorrowIndex`, and maps each such index to a `BorrowData`
122
122
/// describing the borrow. These indexes are used for representing the
123
123
/// borrows in compact bitvectors.
124
- pub struct Borrows < ' a , ' tcx > {
124
+ pub struct Borrows < ' mir , ' tcx > {
125
125
tcx : TyCtxt < ' tcx > ,
126
- body : & ' a Body < ' tcx > ,
126
+ body : & ' mir Body < ' tcx > ,
127
127
128
- borrow_set : & ' a BorrowSet < ' tcx > ,
128
+ borrow_set : & ' mir BorrowSet < ' tcx > ,
129
129
borrows_out_of_scope_at_location : FxIndexMap < Location , Vec < BorrowIndex > > ,
130
130
}
131
131
132
- struct OutOfScopePrecomputer < ' a , ' tcx > {
132
+ struct OutOfScopePrecomputer < ' mir , ' tcx > {
133
133
visited : BitSet < mir:: BasicBlock > ,
134
134
visit_stack : Vec < mir:: BasicBlock > ,
135
- body : & ' a Body < ' tcx > ,
136
- regioncx : & ' a RegionInferenceContext < ' tcx > ,
135
+ body : & ' mir Body < ' tcx > ,
136
+ regioncx : & ' mir RegionInferenceContext < ' tcx > ,
137
137
borrows_out_of_scope_at_location : FxIndexMap < Location , Vec < BorrowIndex > > ,
138
138
}
139
139
140
- impl < ' a , ' tcx > OutOfScopePrecomputer < ' a , ' tcx > {
141
- fn new ( body : & ' a Body < ' tcx > , regioncx : & ' a RegionInferenceContext < ' tcx > ) -> Self {
140
+ impl < ' mir , ' tcx > OutOfScopePrecomputer < ' mir , ' tcx > {
141
+ fn new ( body : & ' mir Body < ' tcx > , regioncx : & ' mir RegionInferenceContext < ' tcx > ) -> Self {
142
142
OutOfScopePrecomputer {
143
143
visited : BitSet :: new_empty ( body. basic_blocks . len ( ) ) ,
144
144
visit_stack : vec ! [ ] ,
@@ -241,17 +241,17 @@ pub fn calculate_borrows_out_of_scope_at_location<'tcx>(
241
241
prec. borrows_out_of_scope_at_location
242
242
}
243
243
244
- struct PoloniusOutOfScopePrecomputer < ' a , ' tcx > {
244
+ struct PoloniusOutOfScopePrecomputer < ' mir , ' tcx > {
245
245
visited : BitSet < mir:: BasicBlock > ,
246
246
visit_stack : Vec < mir:: BasicBlock > ,
247
- body : & ' a Body < ' tcx > ,
248
- regioncx : & ' a RegionInferenceContext < ' tcx > ,
247
+ body : & ' mir Body < ' tcx > ,
248
+ regioncx : & ' mir RegionInferenceContext < ' tcx > ,
249
249
250
250
loans_out_of_scope_at_location : FxIndexMap < Location , Vec < BorrowIndex > > ,
251
251
}
252
252
253
- impl < ' a , ' tcx > PoloniusOutOfScopePrecomputer < ' a , ' tcx > {
254
- fn new ( body : & ' a Body < ' tcx > , regioncx : & ' a RegionInferenceContext < ' tcx > ) -> Self {
253
+ impl < ' mir , ' tcx > PoloniusOutOfScopePrecomputer < ' mir , ' tcx > {
254
+ fn new ( body : & ' mir Body < ' tcx > , regioncx : & ' mir RegionInferenceContext < ' tcx > ) -> Self {
255
255
Self {
256
256
visited : BitSet :: new_empty ( body. basic_blocks . len ( ) ) ,
257
257
visit_stack : vec ! [ ] ,
@@ -404,12 +404,12 @@ impl<'tcx> PoloniusOutOfScopePrecomputer<'_, 'tcx> {
404
404
}
405
405
}
406
406
407
- impl < ' a , ' tcx > Borrows < ' a , ' tcx > {
407
+ impl < ' mir , ' tcx > Borrows < ' mir , ' tcx > {
408
408
pub fn new (
409
409
tcx : TyCtxt < ' tcx > ,
410
- body : & ' a Body < ' tcx > ,
411
- regioncx : & ' a RegionInferenceContext < ' tcx > ,
412
- borrow_set : & ' a BorrowSet < ' tcx > ,
410
+ body : & ' mir Body < ' tcx > ,
411
+ regioncx : & ' mir RegionInferenceContext < ' tcx > ,
412
+ borrow_set : & ' mir BorrowSet < ' tcx > ,
413
413
) -> Self {
414
414
let mut borrows_out_of_scope_at_location =
415
415
calculate_borrows_out_of_scope_at_location ( body, regioncx, borrow_set) ;
0 commit comments