1
Fork 0

add FIXME's for a later refactoring

This commit is contained in:
lcnr 2023-06-19 09:16:26 +02:00
parent 0589cd0f0a
commit 46973c9c8a
3 changed files with 7 additions and 3 deletions

View file

@ -61,6 +61,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
LocalRef::Operand(ref mut op) => {
let local_ty = self.monomorphize(self.mir.local_decls[local].ty);
if local_ty != op.layout.ty {
// FIXME(#112651): This can be changed to an ICE afterwards.
debug!("updating type of operand due to subtyping");
with_no_trimmed_paths!(debug!(?op.layout.ty));
with_no_trimmed_paths!(debug!(?local_ty));