]> git.lizzy.rs Git - rust.git/commit
auto merge of #18730 : bkoropoff/rust/issue-18652, r=eddyb
authorbors <bors@rust-lang.org>
Sat, 8 Nov 2014 23:56:39 +0000 (23:56 +0000)
committerbors <bors@rust-lang.org>
Sat, 8 Nov 2014 23:56:39 +0000 (23:56 +0000)
commit93c85eb8bdcc910a27caf6abd20207a626ae98e5
treefa8c54d2988a71a15ccd3218d4be8f84d356bb49
parentf0ca717c643cbef31859e443ee20db4465ac8864
parent2c956d0abfa8cc169fc2c2ab5343b77b20397817
auto merge of #18730 : bkoropoff/rust/issue-18652, r=eddyb

`FnOnce` environments that fit within an `int` are passed to the closure by value.  For some reason there was an assert that this would only happen if there were 1 or 0 free variables, but it can also happen if there are multiple variables that happen to fit.

Closes #18652
src/librustc/middle/trans/closure.rs