@@ -139,7 +139,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
139139 }
140140
141141 pub fn int_to_int_or_float (
142- & mut self ,
142+ & self ,
143143 src : & ImmTy < ' tcx , M :: Provenance > ,
144144 cast_ty : Ty < ' tcx > ,
145145 ) -> InterpResult < ' tcx , Immediate < M :: Provenance > > {
@@ -154,7 +154,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
154154 }
155155
156156 pub fn float_to_float_or_int (
157- & mut self ,
157+ & self ,
158158 src : & ImmTy < ' tcx , M :: Provenance > ,
159159 cast_ty : Ty < ' tcx > ,
160160 ) -> InterpResult < ' tcx , Immediate < M :: Provenance > > {
@@ -176,7 +176,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
176176
177177 /// Handles 'FnPtrToPtr' and 'PtrToPtr' casts.
178178 pub fn ptr_to_ptr (
179- & mut self ,
179+ & self ,
180180 src : & ImmTy < ' tcx , M :: Provenance > ,
181181 cast_ty : Ty < ' tcx > ,
182182 ) -> InterpResult < ' tcx , Immediate < M :: Provenance > > {
@@ -226,7 +226,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
226226 }
227227
228228 pub fn pointer_from_exposed_address_cast (
229- & mut self ,
229+ & self ,
230230 src : & ImmTy < ' tcx , M :: Provenance > ,
231231 cast_ty : Ty < ' tcx > ,
232232 ) -> InterpResult < ' tcx , Immediate < M :: Provenance > > {
0 commit comments