"Partially moved" unions are dropped incorrectly #36246
Labels
A-destructors
Area: Destructors (`Drop`, …)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code:
Expected output:
Actual output:
i.e.
u.z
is dropped too for some reason.This is probably caused by some union-specific logic missing from
librustc_borrowck/borrowck/fragments.rs
andlibrustc_borrowck/borrowck/mir/
.The text was updated successfully, but these errors were encountered: