about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src/interpret/memory.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-04-16 16:37:34 +0200
committerRalf Jung <post@ralfj.de>2024-04-16 16:37:34 +0200
commit18bfca50f1a6d9ccf322fa4dafec3a67a39ef300 (patch)
tree834593c2a0445f56193730f0ad9100198c81993a /compiler/rustc_const_eval/src/interpret/memory.rs
parent63f70b3d104e20289a1a0df82747066c3d85b9a1 (diff)
downloadrust-18bfca50f1a6d9ccf322fa4dafec3a67a39ef300.tar.gz
rust-18bfca50f1a6d9ccf322fa4dafec3a67a39ef300.zip
interpret: pass MemoryKind to before_memory_deallocation
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret/memory.rs')
-rw-r--r--compiler/rustc_const_eval/src/interpret/memory.rs1
1 files changed, 1 insertions, 0 deletions
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