From 5876bc65c1f9b2b97c83bfce1610fec2bd46bf15 Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Thu, 21 Nov 2024 15:02:15 +0000 Subject: [PATCH] Further migration to TypingEnv --- src/monomorphize_collector.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/monomorphize_collector.rs b/src/monomorphize_collector.rs index 6bd29e2..8c59228 100644 --- a/src/monomorphize_collector.rs +++ b/src/monomorphize_collector.rs @@ -856,7 +856,7 @@ pub fn find_vtable_types_for_unsizing<'tcx>( ) -> (Ty<'tcx>, Ty<'tcx>) { let ptr_vtable = |inner_source: Ty<'tcx>, inner_target: Ty<'tcx>| { let type_has_metadata = |ty: Ty<'tcx>| -> bool { - if ty.is_sized(tcx.tcx, typing_env.param_env) { + if ty.is_sized(tcx.tcx, typing_env) { return false; } let tail = tcx.struct_tail_for_codegen(ty, typing_env);