@@ -121,24 +121,24 @@ rustc_index::newtype_index! {
121121/// `BorrowIndex`, and maps each such index to a `BorrowData`
122122/// describing the borrow. These indexes are used for representing the
123123/// borrows in compact bitvectors.
124- pub struct Borrows < ' a , ' tcx > {
124+ pub struct Borrows < ' mir , ' tcx > {
125125 tcx : TyCtxt < ' tcx > ,
126- body : & ' a Body < ' tcx > ,
126+ body : & ' mir Body < ' tcx > ,
127127
128- borrow_set : & ' a BorrowSet < ' tcx > ,
128+ borrow_set : & ' mir BorrowSet < ' tcx > ,
129129 borrows_out_of_scope_at_location : FxIndexMap < Location , Vec < BorrowIndex > > ,
130130}
131131
132- struct OutOfScopePrecomputer < ' a , ' tcx > {
132+ struct OutOfScopePrecomputer < ' mir , ' tcx > {
133133 visited : BitSet < mir:: BasicBlock > ,
134134 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 > ,
137137 borrows_out_of_scope_at_location : FxIndexMap < Location , Vec < BorrowIndex > > ,
138138}
139139
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 {
142142 OutOfScopePrecomputer {
143143 visited : BitSet :: new_empty ( body. basic_blocks . len ( ) ) ,
144144 visit_stack : vec ! [ ] ,
@@ -241,17 +241,17 @@ pub fn calculate_borrows_out_of_scope_at_location<'tcx>(
241241 prec. borrows_out_of_scope_at_location
242242}
243243
244- struct PoloniusOutOfScopePrecomputer < ' a , ' tcx > {
244+ struct PoloniusOutOfScopePrecomputer < ' mir , ' tcx > {
245245 visited : BitSet < mir:: BasicBlock > ,
246246 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 > ,
249249
250250 loans_out_of_scope_at_location : FxIndexMap < Location , Vec < BorrowIndex > > ,
251251}
252252
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 {
255255 Self {
256256 visited : BitSet :: new_empty ( body. basic_blocks . len ( ) ) ,
257257 visit_stack : vec ! [ ] ,
@@ -404,12 +404,12 @@ impl<'tcx> PoloniusOutOfScopePrecomputer<'_, 'tcx> {
404404 }
405405}
406406
407- impl < ' a , ' tcx > Borrows < ' a , ' tcx > {
407+ impl < ' mir , ' tcx > Borrows < ' mir , ' tcx > {
408408 pub fn new (
409409 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 > ,
413413 ) -> Self {
414414 let mut borrows_out_of_scope_at_location =
415415 calculate_borrows_out_of_scope_at_location ( body, regioncx, borrow_set) ;
0 commit comments