]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #22160 - dotdash:extern_rust, r=brson
authorbors <bors@rust-lang.org>
Wed, 11 Feb 2015 01:04:54 +0000 (01:04 +0000)
committerbors <bors@rust-lang.org>
Wed, 11 Feb 2015 01:04:54 +0000 (01:04 +0000)
As the function comment already says, the types generated in the
foreign_signture function don't necessarily match the types used for a
corresponding rust function. Therefore we can't just use these types to
guide the translation of the wrapper function that bridges between the
external ABI and the rust ABI. Instead, we can query LLVM about the
types used in the rust function and use those to generate an appropriate
wrapper.

Fixes #21454


Trivial merge