We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc1c6c3 commit 43b55cfCopy full SHA for 43b55cf
compiler/rustc_middle/src/mir/interpret/allocation.rs
@@ -130,9 +130,8 @@ impl<Tag> Allocation<Tag> {
130
InterpError::ResourceExhaustion(ResourceExhaustionInfo::MemoryExhausted)
131
})?;
132
bytes.resize(size.bytes_usize(), 0);
133
- bytes.fill(0);
134
Ok(Allocation {
135
- bytes: bytes,
+ bytes,
136
relocations: Relocations::new(),
137
init_mask: InitMask::new(size, false),
138
align,
0 commit comments