interpret/allocation: make alloc fn be FnOnce
This commit is contained in:
parent
cb678b94c3
commit
bcebf58acc
1 changed files with 1 additions and 1 deletions
|
|
@ -512,7 +512,7 @@ impl Allocation {
|
|||
pub fn adjust_from_tcx<'tcx, Prov: Provenance, Bytes: AllocBytes>(
|
||||
&self,
|
||||
cx: &impl HasDataLayout,
|
||||
mut alloc_bytes: impl FnMut(&[u8], Align) -> InterpResult<'tcx, Bytes>,
|
||||
alloc_bytes: impl FnOnce(&[u8], Align) -> InterpResult<'tcx, Bytes>,
|
||||
mut adjust_ptr: impl FnMut(Pointer<CtfeProvenance>) -> InterpResult<'tcx, Pointer<Prov>>,
|
||||
) -> InterpResult<'tcx, Allocation<Prov, (), Bytes>> {
|
||||
// Copy the data.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue