Compute unsizing casts in GVN.

This commit is contained in:
Camille GILLOT 2023-12-17 22:30:20 +00:00
parent 1f544ca0cc
commit 304b4ad8b9
7 changed files with 33 additions and 21 deletions

View file

@ -415,7 +415,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
}
}
fn unsize_into(
pub fn unsize_into(
&mut self,
src: &OpTy<'tcx, M::Provenance>,
cast_ty: TyAndLayout<'tcx>,