about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-02-22 11:37:13 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2025-02-22 11:37:13 +0000
commit52338f4e06665f2d2d408aa504488e3b097009fa (patch)
treeccb4d6cecbe86ca688e362d59694dc82d5eeb2e8
parent3fc1a5852193e6be4d9ef3d05f70ac167eb31091 (diff)
parent410a68a907b14db7eaa2152eccbbcef9ae357f7c (diff)
downloadrust-52338f4e06665f2d2d408aa504488e3b097009fa.tar.gz
rust-52338f4e06665f2d2d408aa504488e3b097009fa.zip
Sync from rust 794c12416b2138064af1f2746646973fafd9419d
-rw-r--r--src/value_and_place.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/value_and_place.rs b/src/value_and_place.rs
index a9b8e1bd393..1b3f86c8405 100644
--- a/src/value_and_place.rs
+++ b/src/value_and_place.rs
@@ -638,9 +638,7 @@ impl<'tcx> CPlace<'tcx> {
             }
             CPlaceInner::Addr(_, Some(_)) => bug!("Can't write value to unsized place {:?}", self),
             CPlaceInner::Addr(to_ptr, None) => {
-                if dst_layout.size == Size::ZERO
-                    || dst_layout.backend_repr == BackendRepr::Uninhabited
-                {
+                if dst_layout.size == Size::ZERO {
                     return;
                 }