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
+4
View File
@@ -915,6 +915,10 @@ fn is_wide_ptr<'tcx>(fx: &FunctionCx<'_, '_, 'tcx>, ty: Ty<'tcx>) -> bool {
}
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(_)