@@ -129,7 +129,7 @@ struct ValidityVisitor<'rt, 'a: 'rt, 'mir: 'rt, 'tcx: 'a+'rt+'mir, M: Machine<'a
129
129
path : Vec < PathElem > ,
130
130
ref_tracking : Option < & ' rt mut RefTracking < ' tcx , M :: PointerTag > > ,
131
131
const_mode : bool ,
132
- ecx : & ' rt mut EvalContext < ' a , ' mir , ' tcx , M > ,
132
+ ecx : & ' rt EvalContext < ' a , ' mir , ' tcx , M > ,
133
133
}
134
134
135
135
impl < ' 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>>
188
188
type V = OpTy < ' tcx , M :: PointerTag > ;
189
189
190
190
#[ 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
193
193
}
194
194
195
195
#[ inline]
@@ -557,7 +557,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M>
557
557
/// This also toggles between "run-time" (no recursion) and "compile-time" (with recursion)
558
558
/// validation (e.g., pointer values are fine in integers at runtime).
559
559
pub fn validate_operand (
560
- & mut self ,
560
+ & self ,
561
561
op : OpTy < ' tcx , M :: PointerTag > ,
562
562
path : Vec < PathElem > ,
563
563
ref_tracking : Option < & mut RefTracking < ' tcx , M :: PointerTag > > ,
0 commit comments