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-03-09 13:50:39 +0100
committerRalf Jung <post@ralfj.de>2024-03-09 13:53:40 +0100
commit16e869a678312b16c2e97461f144ce63ef5309bc (patch)
treeab2991f3246d8a4163b658d4108e7a6f9ef4cb02 /compiler/rustc_const_eval/src/interpret/memory.rs
parent79d246112dc95bbd67848f7546f3fd1aca516b82 (diff)
downloadrust-16e869a678312b16c2e97461f144ce63ef5309bc.tar.gz
rust-16e869a678312b16c2e97461f144ce63ef5309bc.zip
interpret: pass Size and Align 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.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/memory.rs b/compiler/rustc_const_eval/src/interpret/memory.rs
index 3b2208b8caa..0df724f29c4 100644
--- a/compiler/rustc_const_eval/src/interpret/memory.rs
+++ b/compiler/rustc_const_eval/src/interpret/memory.rs
@@ -345,7 +345,8 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
             &mut self.machine,
             &mut alloc.extra,
             (alloc_id, prov),
-            alloc_range(Size::ZERO, size),
+            size,
+            alloc.align,
         )?;
 
         // Don't forget to remember size and align of this now-dead allocation