diff options
| author | Ralf Jung <post@ralfj.de> | 2024-04-16 16:37:34 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-04-16 16:37:34 +0200 |
| commit | 18bfca50f1a6d9ccf322fa4dafec3a67a39ef300 (patch) | |
| tree | 834593c2a0445f56193730f0ad9100198c81993a /compiler/rustc_const_eval/src | |
| parent | 63f70b3d104e20289a1a0df82747066c3d85b9a1 (diff) | |
| download | rust-18bfca50f1a6d9ccf322fa4dafec3a67a39ef300.tar.gz rust-18bfca50f1a6d9ccf322fa4dafec3a67a39ef300.zip | |
interpret: pass MemoryKind to before_memory_deallocation
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/machine.rs | 1 | ||||
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/memory.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/machine.rs b/compiler/rustc_const_eval/src/interpret/machine.rs index 827d8fd9417..be66ac548d3 100644 --- a/compiler/rustc_const_eval/src/interpret/machine.rs +++ b/compiler/rustc_const_eval/src/interpret/machine.rs @@ -427,6 +427,7 @@ pub trait Machine<'mir, 'tcx: 'mir>: Sized { _prov: (AllocId, Self::ProvenanceExtra), _size: Size, _align: Align, + _kind: MemoryKind<Self::MemoryKind>, ) -> InterpResult<'tcx> { Ok(()) } diff --git a/compiler/rustc_const_eval/src/interpret/memory.rs b/compiler/rustc_const_eval/src/interpret/memory.rs index 9b1d9cf932b..ca2beb40ce8 100644 --- a/compiler/rustc_const_eval/src/interpret/memory.rs +++ b/compiler/rustc_const_eval/src/interpret/memory.rs @@ -355,6 +355,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { (alloc_id, prov), size, alloc.align, + kind, )?; // Don't forget to remember size and align of this now-dead allocation |
