]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #52089 - eddyb:issue-51907, r=nagisa
authorbors <bors@rust-lang.org>
Thu, 12 Jul 2018 01:20:19 +0000 (01:20 +0000)
committerbors <bors@rust-lang.org>
Thu, 12 Jul 2018 01:20:19 +0000 (01:20 +0000)
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

1  2 
src/librustc_codegen_llvm/abi.rs

Simple merge