@@ -21,10 +21,10 @@ use super::{
21
21
} ;
22
22
use crate :: const_eval:: { CompileTimeInterpreter , CompileTimeEvalContext } ;
23
23
24
- struct InternVisitor < ' rt , ' a : ' rt , ' mir : ' rt , ' tcx : ' a + ' rt + ' mir > {
24
+ struct InternVisitor < ' rt , ' mir : ' rt , ' tcx : ' rt + ' mir > {
25
25
/// previously encountered safe references
26
26
ref_tracking : & ' rt mut RefTracking < ( MPlaceTy < ' tcx > , Mutability , InternMode ) > ,
27
- ecx : & ' rt mut CompileTimeEvalContext < ' a , ' mir , ' tcx > ,
27
+ ecx : & ' rt mut CompileTimeEvalContext < ' mir , ' tcx > ,
28
28
param_env : ParamEnv < ' tcx > ,
29
29
/// The root node of the value that we're looking at. This field is never mutated and only used
30
30
/// for sanity assertions that will ICE when `const_qualif` screws up.
@@ -58,7 +58,7 @@ enum InternMode {
58
58
/// into the memory of other constants or statics
59
59
struct IsStaticOrFn ;
60
60
61
- impl < ' rt , ' a , ' mir , ' tcx > InternVisitor < ' rt , ' a , ' mir , ' tcx > {
61
+ impl < ' rt , ' mir , ' tcx > InternVisitor < ' rt , ' mir , ' tcx > {
62
62
/// Intern an allocation without looking at its children
63
63
fn intern_shallow (
64
64
& mut self ,
@@ -103,15 +103,15 @@ impl<'rt, 'a, 'mir, 'tcx> InternVisitor<'rt, 'a, 'mir, 'tcx> {
103
103
}
104
104
}
105
105
106
- impl < ' rt , ' a , ' mir , ' tcx >
107
- ValueVisitor < ' a , ' mir , ' tcx , CompileTimeInterpreter < ' a , ' mir , ' tcx > >
106
+ impl < ' rt , ' mir , ' tcx >
107
+ ValueVisitor < ' mir , ' tcx , CompileTimeInterpreter < ' mir , ' tcx > >
108
108
for
109
- InternVisitor < ' rt , ' a , ' mir , ' tcx >
109
+ InternVisitor < ' rt , ' mir , ' tcx >
110
110
{
111
111
type V = MPlaceTy < ' tcx > ;
112
112
113
113
#[ inline( always) ]
114
- fn ecx ( & self ) -> & CompileTimeEvalContext < ' a , ' mir , ' tcx > {
114
+ fn ecx ( & self ) -> & CompileTimeEvalContext < ' mir , ' tcx > {
115
115
& self . ecx
116
116
}
117
117
220
220
221
221
/// Figure out the mutability of the allocation.
222
222
/// Mutable if it has interior mutability *anywhere* in the type.
223
- fn intern_mutability < ' a , ' tcx > (
224
- tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
223
+ fn intern_mutability < ' tcx > (
224
+ tcx : TyCtxt < ' tcx , ' tcx > ,
225
225
param_env : ParamEnv < ' tcx > ,
226
226
ty : Ty < ' tcx > ,
227
227
span : Span ,
@@ -236,7 +236,7 @@ fn intern_mutability<'a, 'tcx>(
236
236
}
237
237
238
238
pub fn intern_const_alloc_recursive (
239
- ecx : & mut CompileTimeEvalContext < ' a , ' mir , ' tcx > ,
239
+ ecx : & mut CompileTimeEvalContext < ' mir , ' tcx > ,
240
240
def_id : DefId ,
241
241
ret : MPlaceTy < ' tcx > ,
242
242
// FIXME(oli-obk): can we scrap the param env? I think we can, the final value of a const eval
0 commit comments