about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/mir
diff options
context:
space:
mode:
authorErik Desjardins <erikdesjardins@users.noreply.github.com>2022-02-19 01:17:31 -0500
committerErik Desjardins <erikdesjardins@users.noreply.github.com>2022-02-19 01:29:17 -0500
commitd5769e9843dede495551a781cf947b631984868f (patch)
tree1e4350cf2cb0007243b391861c7a5efa33a509f0 /compiler/rustc_middle/src/mir
parentb7e5597491a7880934f927edb506605d3368794e (diff)
downloadrust-d5769e9843dede495551a781cf947b631984868f.tar.gz
rust-d5769e9843dede495551a781cf947b631984868f.zip
switch to limiting the number of init/uninit chunks
Diffstat (limited to 'compiler/rustc_middle/src/mir')
-rw-r--r--compiler/rustc_middle/src/mir/interpret/allocation.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_middle/src/mir/interpret/allocation.rs b/compiler/rustc_middle/src/mir/interpret/allocation.rs
index a36c9b6ed73..5de119f9562 100644
--- a/compiler/rustc_middle/src/mir/interpret/allocation.rs
+++ b/compiler/rustc_middle/src/mir/interpret/allocation.rs
@@ -957,6 +957,7 @@ impl InitMask {
 }
 
 /// Yields [`InitChunk`]s. See [`InitMask::range_as_init_chunks`].
+#[derive(Clone)]
 pub struct InitChunkIter<'a> {
     init_mask: &'a InitMask,
     /// Whether the next chunk we will return is initialized.