]> git.lizzy.rs Git - rust.git/commit - src/librustc_llvm/build.rs
Auto merge of #75346 - davidtwco:issue-69925-polymorphic-instancedef-fnptrshim, r...
authorbors <bors@rust-lang.org>
Sun, 20 Sep 2020 04:15:43 +0000 (04:15 +0000)
committerbors <bors@rust-lang.org>
Sun, 20 Sep 2020 04:15:43 +0000 (04:15 +0000)
commita3bc0e752fad96f537b73f4e9bc805a73d404f7b
tree0c1e237df2c2e814a31fcc81c8c81cdbcdafc69a
parent255a4c58f5863ed41c2e68792799125c6c676575
parentf8376b59d1391a5191a561c44067355f1a99c7c0
Auto merge of #75346 - davidtwco:issue-69925-polymorphic-instancedef-fnptrshim, r=nikomatsakis

shim: monomorphic `FnPtrShim`s during construction

Fixes #69925.

This PR adjusts MIR shim construction so that substitutions are applied to function pointer shims during construction, rather than during codegen (as determined by `substs_for_mir_body`).

r? `@eddyb`
compiler/rustc_mir/src/shim.rs