Skip to content

Commit 5ccfa78

Browse files
Only compute vtable information during codegen
1 parent c7d3c4f commit 5ccfa78

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/unsize.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ pub(crate) fn unsized_info<'tcx>(
3939
}
4040

4141
// trait upcasting coercion
42-
let vptr_entry_idx =
43-
fx.tcx.vtable_trait_upcasting_coercion_new_vptr_slot((source, target));
42+
let vptr_entry_idx = fx.tcx.supertrait_vtable_slot((source, target));
4443

4544
if let Some(entry_idx) = vptr_entry_idx {
4645
let entry_idx = u32::try_from(entry_idx).unwrap();

0 commit comments

Comments
 (0)