]> git.lizzy.rs Git - rust.git/commit
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)
commit823f8054532ac87af6d6e486b3167d9367f239f0
treef89c15d0b611451e5a78a04cbbcce564e173b153
parentbd7138dd698dde29fb4d7fd34529a863b85d947e
parente46af8caec4d6b378ba07080ca6a4ee4c92e4856
auto merge of #18144 : bkoropoff/rust/mighty-monomorphizin-unboxed-closures, r=nikomatsakis

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