@@ -129,7 +129,7 @@ struct ValidityVisitor<'rt, 'a: 'rt, 'mir: 'rt, 'tcx: 'a+'rt+'mir, M: Machine<'a
129129 path : Vec < PathElem > ,
130130 ref_tracking : Option < & ' rt mut RefTracking < ' tcx , M :: PointerTag > > ,
131131 const_mode : bool ,
132- ecx : & ' rt mut EvalContext < ' a , ' mir , ' tcx , M > ,
132+ ecx : & ' rt EvalContext < ' a , ' mir , ' tcx , M > ,
133133}
134134
135135impl < ' rt , ' a , ' mir , ' tcx , M : Machine < ' a , ' mir , ' tcx > > ValidityVisitor < ' rt , ' a , ' mir , ' tcx , M > {
@@ -188,8 +188,8 @@ impl<'rt, 'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>>
188188 type V = OpTy < ' tcx , M :: PointerTag > ;
189189
190190 #[ inline( always) ]
191- fn ecx ( & mut self ) -> & mut EvalContext < ' a , ' mir , ' tcx , M > {
192- & mut self . ecx
191+ fn ecx ( & self ) -> & EvalContext < ' a , ' mir , ' tcx , M > {
192+ & self . ecx
193193 }
194194
195195 #[ inline]
@@ -557,7 +557,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M>
557557 /// This also toggles between "run-time" (no recursion) and "compile-time" (with recursion)
558558 /// validation (e.g., pointer values are fine in integers at runtime).
559559 pub fn validate_operand (
560- & mut self ,
560+ & self ,
561561 op : OpTy < ' tcx , M :: PointerTag > ,
562562 path : Vec < PathElem > ,
563563 ref_tracking : Option < & mut RefTracking < ' tcx , M :: PointerTag > > ,
0 commit comments