1
Fork 0

interpret: make Writeable trait about a to_place operation

This commit is contained in:
Ralf Jung 2024-08-28 17:42:05 +02:00
parent fa60ea7d38
commit 8ad808db7e
2 changed files with 13 additions and 18 deletions

View file

@ -691,7 +691,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
) -> InterpResult<'tcx, OpTy<'tcx, M::Provenance>> {
match place.as_mplace_or_local() {
Left(mplace) => Ok(mplace.into()),
Right((local, offset, locals_addr)) => {
Right((local, offset, locals_addr, _)) => {
debug_assert!(place.layout.is_sized()); // only sized locals can ever be `Place::Local`.
debug_assert_eq!(locals_addr, self.frame().locals_addr());
let base = self.local_to_op(local, None)?;