Enforce unsafe binders must be Copy (for now)

This commit is contained in:
Michael Goulet 2025-01-31 02:04:10 +00:00
parent 83ab12f0dc
commit 6c0f4bbd75

View file

@ -915,6 +915,10 @@ fn codegen_stmt<'tcx>(
}
crate::discriminant::codegen_set_discriminant(fx, lval, variant_index);
}
Rvalue::WrapUnsafeBinder(ref operand, _to_ty) => {
let operand = codegen_operand(fx, operand);
lval.write_cvalue_transmute(fx, operand);
}
}
}
StatementKind::StorageLive(_)