Merge commit 'ba315abda789c9f59f2100102232bddb30b0d3d3' into sync_cg_clif-2025-03-30
This commit is contained in:
@@ -729,8 +729,10 @@ fn codegen_stmt<'tcx>(
|
||||
let to_ty = fx.monomorphize(to_ty);
|
||||
|
||||
fn is_wide_ptr<'tcx>(fx: &FunctionCx<'_, '_, 'tcx>, ty: Ty<'tcx>) -> bool {
|
||||
ty.builtin_deref(true)
|
||||
.is_some_and(|pointee_ty| has_ptr_meta(fx.tcx, pointee_ty))
|
||||
ty.builtin_deref(true).is_some_and(|pointee_ty| {
|
||||
fx.tcx
|
||||
.type_has_metadata(pointee_ty, ty::TypingEnv::fully_monomorphized())
|
||||
})
|
||||
}
|
||||
|
||||
if is_wide_ptr(fx, from_ty) {
|
||||
|
||||
Reference in New Issue
Block a user