@@ -21,10 +21,10 @@ use super::{
2121} ;
2222use crate :: const_eval:: { CompileTimeInterpreter , CompileTimeEvalContext } ;
2323
24- struct InternVisitor < ' rt , ' a : ' rt , ' mir : ' rt , ' tcx : ' a + ' rt + ' mir > {
24+ struct InternVisitor < ' rt , ' mir : ' rt , ' tcx : ' rt + ' mir > {
2525 /// previously encountered safe references
2626 ref_tracking : & ' rt mut RefTracking < ( MPlaceTy < ' tcx > , Mutability , InternMode ) > ,
27- ecx : & ' rt mut CompileTimeEvalContext < ' a , ' mir , ' tcx > ,
27+ ecx : & ' rt mut CompileTimeEvalContext < ' mir , ' tcx > ,
2828 param_env : ParamEnv < ' tcx > ,
2929 /// The root node of the value that we're looking at. This field is never mutated and only used
3030 /// for sanity assertions that will ICE when `const_qualif` screws up.
@@ -58,7 +58,7 @@ enum InternMode {
5858/// into the memory of other constants or statics
5959struct IsStaticOrFn ;
6060
61- impl < ' rt , ' a , ' mir , ' tcx > InternVisitor < ' rt , ' a , ' mir , ' tcx > {
61+ impl < ' rt , ' mir , ' tcx > InternVisitor < ' rt , ' mir , ' tcx > {
6262 /// Intern an allocation without looking at its children
6363 fn intern_shallow (
6464 & mut self ,
@@ -103,15 +103,15 @@ impl<'rt, 'a, 'mir, 'tcx> InternVisitor<'rt, 'a, 'mir, 'tcx> {
103103 }
104104}
105105
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 > >
108108for
109- InternVisitor < ' rt , ' a , ' mir , ' tcx >
109+ InternVisitor < ' rt , ' mir , ' tcx >
110110{
111111 type V = MPlaceTy < ' tcx > ;
112112
113113 #[ inline( always) ]
114- fn ecx ( & self ) -> & CompileTimeEvalContext < ' a , ' mir , ' tcx > {
114+ fn ecx ( & self ) -> & CompileTimeEvalContext < ' mir , ' tcx > {
115115 & self . ecx
116116 }
117117
220220
221221/// Figure out the mutability of the allocation.
222222/// 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 > ,
225225 param_env : ParamEnv < ' tcx > ,
226226 ty : Ty < ' tcx > ,
227227 span : Span ,
@@ -236,7 +236,7 @@ fn intern_mutability<'a, 'tcx>(
236236}
237237
238238pub fn intern_const_alloc_recursive (
239- ecx : & mut CompileTimeEvalContext < ' a , ' mir , ' tcx > ,
239+ ecx : & mut CompileTimeEvalContext < ' mir , ' tcx > ,
240240 def_id : DefId ,
241241 ret : MPlaceTy < ' tcx > ,
242242 // FIXME(oli-obk): can we scrap the param env? I think we can, the final value of a const eval
0 commit comments