about summary refs log tree commit diff
path: root/src/vtable.rs
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2021-10-07 11:29:01 +0200
committerMichael Woerister <michaelwoerister@posteo.de>2021-10-07 20:03:00 +0200
commit095064b9960f85bdf371f7448b3b93d28ba6168f (patch)
tree0d08fbc5fc181d461adfa38b4847fc0349a1caf7 /src/vtable.rs
parent881208f2681dde99e17d6d2facd53d033f36b2fd (diff)
Turn tcx.vtable_allocation() into a query.
Diffstat (limited to 'src/vtable.rs')
-rw-r--r--src/vtable.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vtable.rs b/src/vtable.rs
index f97d416b66f..36b3725ef42 100644
--- a/src/vtable.rs
+++ b/src/vtable.rs
@@ -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);