1
Fork 0

bug! more uses of these in runtime stuff

This commit is contained in:
Scott McMurray 2024-06-14 23:01:22 -07:00
parent 4630d1b23b
commit e04e35133f
3 changed files with 18 additions and 18 deletions

View file

@ -70,9 +70,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
CastKind::PointerCoercion(
PointerCoercion::MutToConstPointer | PointerCoercion::ArrayToPointer,
) => {
// These are NOPs, but can be wide pointers.
let v = self.read_immediate(src)?;
self.write_immediate(*v, dest)?;
bug!("{cast_kind:?} casts are for borrowck only, not runtime MIR");
}
CastKind::PointerCoercion(PointerCoercion::ReifyFnPointer) => {