1
Fork 0

Validation

This commit is contained in:
Michael Goulet 2025-01-31 17:19:32 +00:00
parent b63341e892
commit 442b9a9387
2 changed files with 40 additions and 2 deletions

View file

@ -279,6 +279,8 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
}
WrapUnsafeBinder(ref op, _ty) => {
// Constructing an unsafe binder acts like a transmute
// since the operand's layout does not change.
let op = self.eval_operand(op, None)?;
self.copy_op_allow_transmute(&op, &dest)?;
}