@@ -139,7 +139,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
139
139
}
140
140
141
141
pub fn int_to_int_or_float(
142
- &mut self,
142
+ &self,
143
143
src: &ImmTy<'tcx, M::Provenance>,
144
144
cast_ty: Ty<'tcx>,
145
145
) -> InterpResult<'tcx, Immediate<M::Provenance>> {
@@ -154,7 +154,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
154
154
}
155
155
156
156
pub fn float_to_float_or_int(
157
- &mut self,
157
+ &self,
158
158
src: &ImmTy<'tcx, M::Provenance>,
159
159
cast_ty: Ty<'tcx>,
160
160
) -> InterpResult<'tcx, Immediate<M::Provenance>> {
@@ -176,7 +176,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
176
176
177
177
/// Handles 'FnPtrToPtr' and 'PtrToPtr' casts.
178
178
pub fn ptr_to_ptr(
179
- &mut self,
179
+ &self,
180
180
src: &ImmTy<'tcx, M::Provenance>,
181
181
cast_ty: Ty<'tcx>,
182
182
) -> InterpResult<'tcx, Immediate<M::Provenance>> {
@@ -226,7 +226,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
226
226
}
227
227
228
228
pub fn pointer_from_exposed_address_cast(
229
- &mut self,
229
+ &self,
230
230
src: &ImmTy<'tcx, M::Provenance>,
231
231
cast_ty: Ty<'tcx>,
232
232
) -> InterpResult<'tcx, Immediate<M::Provenance>> {
0 commit comments