]> git.lizzy.rs Git - rust.git/blobdiff - src/vtable.rs
Fix assert_assignable for array types
[rust.git] / src / vtable.rs
index f97d416b66f9ff8cabf19755b97f221dd256e9ea..36b3725ef42bce5ad62f38288b64dad9b5c62be1 100644 (file)
@@ -68,7 +68,7 @@ pub(crate) fn get_vtable<'tcx>(
     ty: Ty<'tcx>,
     trait_ref: Option<ty::PolyExistentialTraitRef<'tcx>>,
 ) -> Value {
-    let alloc_id = fx.tcx.vtable_allocation(ty, trait_ref);
+    let alloc_id = fx.tcx.vtable_allocation((ty, trait_ref));
     let data_id =
         data_id_for_alloc_id(&mut fx.constants_cx, &mut *fx.module, alloc_id, Mutability::Not);
     let local_data_id = fx.module.declare_data_in_func(data_id, &mut fx.bcx.func);