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