From: JCTyblaidd Date: Fri, 11 Dec 2020 19:28:20 +0000 (+0000) Subject: Rustfmt X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=175226a01c53a9b9779e05e2d1076d4a3ed37911;p=rust.git Rustfmt --- diff --git a/compiler/rustc_mir/src/interpret/traits.rs b/compiler/rustc_mir/src/interpret/traits.rs index 18dba477598..09ce6bc0fb7 100644 --- a/compiler/rustc_mir/src/interpret/traits.rs +++ b/compiler/rustc_mir/src/interpret/traits.rs @@ -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));