about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-06-14 20:35:45 -0400
committerMichael Goulet <michael@errs.io>2024-06-14 20:35:45 -0400
commit5ccfa787fd26da2e4fb5f4c6dca89c84342716ef (patch)
tree1f0cad8145333c642afe8e9255c35a686723ba9e /src
parentc7d3c4f67f5a23caf019bbf63c46405a4cb7bf54 (diff)
downloadrust-5ccfa787fd26da2e4fb5f4c6dca89c84342716ef.tar.gz
rust-5ccfa787fd26da2e4fb5f4c6dca89c84342716ef.zip
Only compute vtable information during codegen
Diffstat (limited to 'src')
-rw-r--r--src/unsize.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/unsize.rs b/src/unsize.rs
index 4acbc8a27ed..967aa53abbd 100644
--- a/src/unsize.rs
+++ b/src/unsize.rs
@@ -39,8 +39,7 @@ pub(crate) fn unsized_info<'tcx>(
             }
 
             // trait upcasting coercion
-            let vptr_entry_idx =
-                fx.tcx.vtable_trait_upcasting_coercion_new_vptr_slot((source, target));
+            let vptr_entry_idx = fx.tcx.supertrait_vtable_slot((source, target));
 
             if let Some(entry_idx) = vptr_entry_idx {
                 let entry_idx = u32::try_from(entry_idx).unwrap();