]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #15256 : erickt/rust/optimizations, r=alexcrichton
authorbors <bors@rust-lang.org>
Mon, 30 Jun 2014 03:46:25 +0000 (03:46 +0000)
committerbors <bors@rust-lang.org>
Mon, 30 Jun 2014 03:46:25 +0000 (03:46 +0000)
The bug #11084 causes `option::collect` and `result::collect` about twice as slower as it should because llvm is having some trouble optimizing away the scan closure. This gets rid of it so now those functions perform equivalent to a hand written version.

This also adds an impl of `Default` for `Rc` along the way.

1  2 
src/libcore/option.rs
src/libcore/result.rs

Simple merge
Simple merge