]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #7363 : bblum/rust/soundness, r=nikomatsakis
authorbors <bors@rust-lang.org>
Sat, 29 Jun 2013 11:22:53 +0000 (04:22 -0700)
committerbors <bors@rust-lang.org>
Sat, 29 Jun 2013 11:22:53 +0000 (04:22 -0700)
The commit f9a5453 is meant to be a temporary hold-over. Whether or not there is added a way for the compiler to "implicitly borrow" stack closures in this way, there should be a codegen optimization that prevents having to traverse possibly-very-many function pointers to find the function you ultimately wanted to call. I tried to separate out the changes so this particular commit could be straight-up reverted if auto-borrowing happens in the future.

r? @nikomatsakis

1  2 
src/librustc/middle/mem_categorization.rs