@@ -22,17 +22,17 @@ use super::{ConstCx, Qualif, qualifs};
22
22
/// qualified immediately after it is borrowed or its address escapes. The borrow must allow for
23
23
/// mutation, which includes shared borrows of places with interior mutability. The type of
24
24
/// borrowed place must contain the qualif.
25
- struct TransferFunction < ' a , ' mir , ' tcx , Q > {
26
- ccx : & ' a ConstCx < ' mir , ' tcx > ,
27
- state : & ' a mut State ,
25
+ struct TransferFunction < ' mir , ' tcx , Q > {
26
+ ccx : & ' mir ConstCx < ' mir , ' tcx > ,
27
+ state : & ' mir mut State ,
28
28
_qualif : PhantomData < Q > ,
29
29
}
30
30
31
- impl < ' a , ' mir , ' tcx , Q > TransferFunction < ' a , ' mir , ' tcx , Q >
31
+ impl < ' mir , ' tcx , Q > TransferFunction < ' mir , ' tcx , Q >
32
32
where
33
33
Q : Qualif ,
34
34
{
35
- fn new ( ccx : & ' a ConstCx < ' mir , ' tcx > , state : & ' a mut State ) -> Self {
35
+ fn new ( ccx : & ' mir ConstCx < ' mir , ' tcx > , state : & ' mir mut State ) -> Self {
36
36
TransferFunction { ccx, state, _qualif : PhantomData }
37
37
}
38
38
@@ -124,7 +124,7 @@ where
124
124
}
125
125
}
126
126
127
- impl < ' tcx , Q > Visitor < ' tcx > for TransferFunction < ' _ , ' _ , ' tcx , Q >
127
+ impl < ' tcx , Q > Visitor < ' tcx > for TransferFunction < ' _ , ' tcx , Q >
128
128
where
129
129
Q : Qualif ,
130
130
{
@@ -228,20 +228,20 @@ where
228
228
}
229
229
230
230
/// The dataflow analysis used to propagate qualifs on arbitrary CFGs.
231
- pub ( super ) struct FlowSensitiveAnalysis < ' a , ' mir , ' tcx , Q > {
232
- ccx : & ' a ConstCx < ' mir , ' tcx > ,
231
+ pub ( super ) struct FlowSensitiveAnalysis < ' mir , ' tcx , Q > {
232
+ ccx : & ' mir ConstCx < ' mir , ' tcx > ,
233
233
_qualif : PhantomData < Q > ,
234
234
}
235
235
236
- impl < ' a , ' mir , ' tcx , Q > FlowSensitiveAnalysis < ' a , ' mir , ' tcx , Q >
236
+ impl < ' mir , ' tcx , Q > FlowSensitiveAnalysis < ' mir , ' tcx , Q >
237
237
where
238
238
Q : Qualif ,
239
239
{
240
- pub ( super ) fn new ( _: Q , ccx : & ' a ConstCx < ' mir , ' tcx > ) -> Self {
240
+ pub ( super ) fn new ( _: Q , ccx : & ' mir ConstCx < ' mir , ' tcx > ) -> Self {
241
241
FlowSensitiveAnalysis { ccx, _qualif : PhantomData }
242
242
}
243
243
244
- fn transfer_function ( & self , state : & ' a mut State ) -> TransferFunction < ' a , ' mir , ' tcx , Q > {
244
+ fn transfer_function ( & self , state : & ' mir mut State ) -> TransferFunction < ' mir , ' tcx , Q > {
245
245
TransferFunction :: < Q > :: new ( self . ccx , state)
246
246
}
247
247
}
@@ -313,7 +313,7 @@ impl JoinSemiLattice for State {
313
313
}
314
314
}
315
315
316
- impl < ' tcx , Q > Analysis < ' tcx > for FlowSensitiveAnalysis < ' _ , ' _ , ' tcx , Q >
316
+ impl < ' tcx , Q > Analysis < ' tcx > for FlowSensitiveAnalysis < ' _ , ' tcx , Q >
317
317
where
318
318
Q : Qualif ,
319
319
{
0 commit comments