]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #18144 : bkoropoff/rust/mighty-monomorphizin-unboxed-closures, r=nikoma...
authorbors <bors@rust-lang.org>
Tue, 28 Oct 2014 03:26:52 +0000 (03:26 +0000)
committerbors <bors@rust-lang.org>
Tue, 28 Oct 2014 03:26:52 +0000 (03:26 +0000)
This allows unboxed closures that reference free type/region parameters to be monomorphized correctly in trans.

It was necessary to make `ty_unboxed_closure` carry around a `Substs` to accomplish this.  Plumbing this through typeck revealed several areas where type/region parameters in unboxed closure types are possibly not being handled correctly.  Since my goal was just to fix trans, I decided to leave FIXME comments on areas that still need attention and seek feedback on the best way to clean them up, possibly as a follow-up PR.

Closes #16791


Trivial merge