summary refs log tree commit diff
path: root/compiler/rustc_mir_dataflow/src
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2021-09-07 16:06:07 +0100
committerGary Guo <gary@garyguo.net>2021-09-13 00:08:35 +0100
commit1c3409f333eb059aeb89a78a01a3a48dc8a52680 (patch)
tree97a8f81da8c671c8018372133f5c6fc9575c5ab9 /compiler/rustc_mir_dataflow/src
parentb69fe57261086e70aea9d5b58819a1794bf7c121 (diff)
downloadrust-1c3409f333eb059aeb89a78a01a3a48dc8a52680.tar.gz
rust-1c3409f333eb059aeb89a78a01a3a48dc8a52680.zip
Introduce NullOp::AlignOf
Diffstat (limited to 'compiler/rustc_mir_dataflow/src')
-rw-r--r--compiler/rustc_mir_dataflow/src/move_paths/builder.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_dataflow/src/move_paths/builder.rs b/compiler/rustc_mir_dataflow/src/move_paths/builder.rs
index cea465ea1ed..407ba739463 100644
--- a/compiler/rustc_mir_dataflow/src/move_paths/builder.rs
+++ b/compiler/rustc_mir_dataflow/src/move_paths/builder.rs
@@ -342,7 +342,7 @@ impl<'b, 'a, 'tcx> Gatherer<'b, 'a, 'tcx> {
             | Rvalue::AddressOf(..)
             | Rvalue::Discriminant(..)
             | Rvalue::Len(..)
-            | Rvalue::NullaryOp(NullOp::SizeOf, _)
+            | Rvalue::NullaryOp(NullOp::SizeOf | NullOp::AlignOf, _)
             | Rvalue::NullaryOp(NullOp::Box, _) => {
                 // This returns an rvalue with uninitialized contents. We can't
                 // move out of it here because it is an rvalue - assignments always