@@ -120,24 +120,24 @@ rustc_index::newtype_index! {
120120/// `BorrowIndex`, and maps each such index to a `BorrowData`
121121/// describing the borrow. These indexes are used for representing the
122122/// borrows in compact bitvectors.
123- pub struct Borrows < ' a , ' tcx > {
123+ pub struct Borrows < ' mir , ' tcx > {
124124 tcx : TyCtxt < ' tcx > ,
125- body : & ' a Body < ' tcx > ,
125+ body : & ' mir Body < ' tcx > ,
126126
127- borrow_set : & ' a BorrowSet < ' tcx > ,
127+ borrow_set : & ' mir BorrowSet < ' tcx > ,
128128 borrows_out_of_scope_at_location : FxIndexMap < Location , Vec < BorrowIndex > > ,
129129}
130130
131- struct OutOfScopePrecomputer < ' a , ' tcx > {
131+ struct OutOfScopePrecomputer < ' mir , ' tcx > {
132132 visited : BitSet < mir:: BasicBlock > ,
133133 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 > ,
136136 borrows_out_of_scope_at_location : FxIndexMap < Location , Vec < BorrowIndex > > ,
137137}
138138
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 {
141141 OutOfScopePrecomputer {
142142 visited : BitSet :: new_empty ( body. basic_blocks . len ( ) ) ,
143143 visit_stack : vec ! [ ] ,
@@ -240,17 +240,17 @@ pub fn calculate_borrows_out_of_scope_at_location<'tcx>(
240240 prec. borrows_out_of_scope_at_location
241241}
242242
243- struct PoloniusOutOfScopePrecomputer < ' a , ' tcx > {
243+ struct PoloniusOutOfScopePrecomputer < ' mir , ' tcx > {
244244 visited : BitSet < mir:: BasicBlock > ,
245245 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 > ,
248248
249249 loans_out_of_scope_at_location : FxIndexMap < Location , Vec < BorrowIndex > > ,
250250}
251251
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 {
254254 Self {
255255 visited : BitSet :: new_empty ( body. basic_blocks . len ( ) ) ,
256256 visit_stack : vec ! [ ] ,
@@ -403,12 +403,12 @@ impl<'tcx> PoloniusOutOfScopePrecomputer<'_, 'tcx> {
403403 }
404404}
405405
406- impl < ' a , ' tcx > Borrows < ' a , ' tcx > {
406+ impl < ' mir , ' tcx > Borrows < ' mir , ' tcx > {
407407 pub fn new (
408408 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 > ,
412412 ) -> Self {
413413 let mut borrows_out_of_scope_at_location =
414414 calculate_borrows_out_of_scope_at_location ( body, regioncx, borrow_set) ;
0 commit comments