mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Rustfmt
This commit is contained in:
parent
6ce29906f1
commit
175226a01c
@ -57,11 +57,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
|
||||
// `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));
|
||||
|
Loading…
Reference in New Issue
Block a user