diff options
Diffstat (limited to 'src/vtable.rs')
| -rw-r--r-- | src/vtable.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/vtable.rs b/src/vtable.rs index 021686544eb..4a5f9f133a2 100644 --- a/src/vtable.rs +++ b/src/vtable.rs @@ -69,12 +69,8 @@ pub(crate) fn get_vtable<'tcx>( trait_ref: Option<ty::PolyExistentialTraitRef<'tcx>>, ) -> Value { 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 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); if fx.clif_comments.enabled() { fx.add_comment(local_data_id, format!("vtable: {:?}", alloc_id)); |
