]> git.lizzy.rs Git - rust.git/commitdiff
Rustfmt
authorJCTyblaidd <JCTyblaidd@users.noreply.github.com>
Fri, 11 Dec 2020 19:28:20 +0000 (19:28 +0000)
committerJCTyblaidd <JCTyblaidd@users.noreply.github.com>
Fri, 11 Dec 2020 19:28:20 +0000 (19:28 +0000)
compiler/rustc_mir/src/interpret/traits.rs

index 18dba4775980b513760f9d372b77daf51872a454..09ce6bc0fb754b18c09183f8f651ff4084db1651 100644 (file)
@@ -57,11 +57,7 @@ pub fn get_vtable(
         // `get_vtable` in `rust_codegen_llvm/meth.rs`.
         // /////////////////////////////////////////////////////////////////////////////////////////
         let vtable_size = ptr_size * u64::try_from(methods.len()).unwrap().checked_add(3).unwrap();
-        let vtable = self.memory.allocate(
-            vtable_size,
-            ptr_align,
-            MemoryKind::Vtable,
-        );
+        let vtable = self.memory.allocate(vtable_size, ptr_align, MemoryKind::Vtable);
 
         let drop = Instance::resolve_drop_in_place(tcx, ty);
         let drop = self.memory.create_fn_alloc(FnVal::Instance(drop));