]> git.proxmox.com Git - rustc.git/blobdiff - compiler/rustc_codegen_ssa/src/meth.rs
New upstream version 1.56.0+dfsg1
[rustc.git] / compiler / rustc_codegen_ssa / src / meth.rs
index efeec5b728413b88b54fe472890f9aab9239c30a..3267d3206f73f45bb55e5f4f8e87b5293091d3fb 100644 (file)
@@ -72,7 +72,7 @@ pub fn get_vtable<'tcx, Cx: CodegenMethods<'tcx>>(
         return val;
     }
 
-    let vtable_alloc_id = tcx.vtable_allocation(ty, trait_ref);
+    let vtable_alloc_id = tcx.vtable_allocation((ty, trait_ref));
     let vtable_allocation = tcx.global_alloc(vtable_alloc_id).unwrap_memory();
     let vtable_const = cx.const_data_from_alloc(vtable_allocation);
     let align = cx.data_layout().pointer_align.abi;