diff options
| author | Michael Goulet <michael@errs.io> | 2024-06-14 20:35:45 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-06-14 20:35:45 -0400 |
| commit | 3b9adbec32757264ba30b68e04ce66d6023810aa (patch) | |
| tree | bd4fd5886f0ad837424f46980f3196a912aafe62 /compiler/rustc_codegen_cranelift/src | |
| parent | f8e566053207b4ecbcbc7a7d6ded82c43061e3da (diff) | |
| download | rust-3b9adbec32757264ba30b68e04ce66d6023810aa.tar.gz rust-3b9adbec32757264ba30b68e04ce66d6023810aa.zip | |
Only compute vtable information during codegen
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/unsize.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/unsize.rs b/compiler/rustc_codegen_cranelift/src/unsize.rs index 4acbc8a27ed..967aa53abbd 100644 --- a/compiler/rustc_codegen_cranelift/src/unsize.rs +++ b/compiler/rustc_codegen_cranelift/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(); |
