fn memory_allocated(
_size: Size,
_memory_extra: &MemoryExtra
- ) -> EvalResult<'tcx, Self>;
+ ) -> Self;
/// Hook for performing extra checks on a memory read access.
///
fn memory_allocated(
_size: Size,
_memory_extra: &()
- ) -> EvalResult<'tcx, Self> {
- Ok(())
+ ) -> Self {
+ ()
}
}
align: Align,
kind: MemoryKind<M::MemoryKinds>,
) -> EvalResult<'tcx, Pointer> {
- let extra = AllocationExtra::memory_allocated(size, &self.extra)?;
+ let extra = AllocationExtra::memory_allocated(size, &self.extra);
Ok(Pointer::from(self.allocate_with(Allocation::undef(size, align, extra), kind)?))
}