Skip to content

Commit 52338f4

Browse files
committed
Sync from rust 794c12416b2138064af1f2746646973fafd9419d
2 parents 3fc1a58 + 410a68a commit 52338f4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/value_and_place.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -638,9 +638,7 @@ impl<'tcx> CPlace<'tcx> {
638638
}
639639
CPlaceInner::Addr(_, Some(_)) => bug!("Can't write value to unsized place {:?}", self),
640640
CPlaceInner::Addr(to_ptr, None) => {
641-
if dst_layout.size == Size::ZERO
642-
|| dst_layout.backend_repr == BackendRepr::Uninhabited
643-
{
641+
if dst_layout.size == Size::ZERO {
644642
return;
645643
}
646644

0 commit comments

Comments
 (0)