Function rustc_codegen_ssa::base::unsize_ptr
source · [−]pub fn unsize_ptr<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
bx: &mut Bx,
src: Bx::Value,
src_ty: Ty<'tcx>,
dst_ty: Ty<'tcx>,
old_info: Option<Bx::Value>
) -> (Bx::Value, Bx::Value)
Expand description
Coerces src
to dst_ty
. src_ty
must be a pointer.