diff --git a/compiler/rustc_middle/src/mir/interpret/allocation.rs b/compiler/rustc_middle/src/mir/interpret/allocation.rs index 7405a70d39a..36c87f335bd 100644 --- a/compiler/rustc_middle/src/mir/interpret/allocation.rs +++ b/compiler/rustc_middle/src/mir/interpret/allocation.rs @@ -130,9 +130,8 @@ impl Allocation { InterpError::ResourceExhaustion(ResourceExhaustionInfo::MemoryExhausted) })?; bytes.resize(size.bytes_usize(), 0); - bytes.fill(0); Ok(Allocation { - bytes: bytes, + bytes, relocations: Relocations::new(), init_mask: InitMask::new(size, false), align,