about summary refs log tree commit diff
diff options
context:
space:
mode:
authorZachary S <zasample18+github@gmail.com>2025-01-25 20:15:24 -0600
committerZachary S <zasample18+github@gmail.com>2025-02-20 13:27:32 -0600
commit410a68a907b14db7eaa2152eccbbcef9ae357f7c (patch)
treea8bf46c6d26c9b9cbc831aa033b96c69f49755b9
parent616fe134c258e0aa4e139a2caf3280a4249a66b4 (diff)
downloadrust-410a68a907b14db7eaa2152eccbbcef9ae357f7c.tar.gz
rust-410a68a907b14db7eaa2152eccbbcef9ae357f7c.zip
Remove `BackendRepr::Uninhabited`, replaced with an `uninhabited: bool` field in `LayoutData`.
Also update comments that refered to BackendRepr::Uninhabited.
-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;
                 }