diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2021-07-05 18:44:37 +0200 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2021-07-05 18:44:37 +0200 |
| commit | a0cdbd1aa61e47fed13e84cbbda9460ea88b7100 (patch) | |
| tree | 40358af210dea9249a898e060458512e022a763b /src/vtable.rs | |
| parent | 38585b3f01a3e11d47bb61d83d915c0c6f302ded (diff) | |
| download | rust-a0cdbd1aa61e47fed13e84cbbda9460ea88b7100.tar.gz rust-a0cdbd1aa61e47fed13e84cbbda9460ea88b7100.zip | |
Rustfmt
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)); |
