From: bors Date: Thu, 12 Jul 2018 01:20:19 +0000 (+0000) Subject: Auto merge of #52089 - eddyb:issue-51907, r=nagisa X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=3244d53c790809872c558ec5a869ea2e1e770ac8;p=rust.git Auto merge of #52089 - eddyb:issue-51907, r=nagisa rustc_codegen_llvm: replace the first argument early in FnType::new_vtable. Fixes #51907 by removing the vtable pointer before the `ArgType` is even created. This allows any ABI to support trait object method calls, regardless of how it passes `*dyn Trait`. r? @nikomatsakis --- 3244d53c790809872c558ec5a869ea2e1e770ac8