rust/src
bors 3a25b65c1f Auto merge of #37315 - bluss:fold-more, r=alexcrichton
Implement Iterator::fold for .chain(), .cloned(), .map() and the VecDeque iterators.

Chain can do something interesting here where it passes on the fold
into its inner iterators.

The lets the underlying iterator's custom fold() be used, and skips the
regular chain logic in next.

Also implement .fold() specifically for .map() and .cloned() so that any
inner fold improvements are available through map and cloned.

The same way, a VecDeque iterator fold can be turned into two slice folds.

These changes lend the power of the slice iterator's loop codegen to
VecDeque, and to chains of slice iterators, and so on.
It's an improvement for .sum() and .product(), and other uses of fold.
2016-10-26 11:43:32 -07:00
..
bootstrap
build_helper
compiler-rt@f03ba5a4e8
doc Rollup merge of #37228 - loggerhead:patch-1, r=steveklabnik 2016-10-24 15:41:28 -07:00
driver
etc
grammar
jemalloc@e058ca6616
liballoc
liballoc_jemalloc
liballoc_system
libarena Auto merge of #37270 - Mark-Simulacrum:smallvec-optimized-arenas, r=eddyb 2016-10-26 03:47:55 -07:00
libbacktrace
libcollections Auto merge of #37315 - bluss:fold-more, r=alexcrichton 2016-10-26 11:43:32 -07:00
libcollectionstest
libcompiler_builtins
libcore Auto merge of #37315 - bluss:fold-more, r=alexcrichton 2016-10-26 11:43:32 -07:00
libcoretest Auto merge of #37315 - bluss:fold-more, r=alexcrichton 2016-10-26 11:43:32 -07:00
libflate
libfmt_macros
libgetopts
libgraphviz
liblibc@c95defce07
liblog
libpanic_abort
libpanic_unwind
libproc_macro
libproc_macro_plugin
librand
librustc Auto merge of #37270 - Mark-Simulacrum:smallvec-optimized-arenas, r=eddyb 2016-10-26 03:47:55 -07:00
librustc_back Auto merge of #36421 - TimNN:check-abis, r=alexcrichton 2016-10-25 21:49:59 -07:00
librustc_bitflags
librustc_borrowck Auto merge of #37270 - Mark-Simulacrum:smallvec-optimized-arenas, r=eddyb 2016-10-26 03:47:55 -07:00
librustc_const_eval
librustc_const_math
librustc_data_structures Auto merge of #37270 - Mark-Simulacrum:smallvec-optimized-arenas, r=eddyb 2016-10-26 03:47:55 -07:00
librustc_driver Auto merge of #37270 - Mark-Simulacrum:smallvec-optimized-arenas, r=eddyb 2016-10-26 03:47:55 -07:00
librustc_errors
librustc_incremental
librustc_lint Utilize AccumulateVec to avoid heap allocations in mk_{substs, type_list, tup} calls. 2016-10-25 20:06:17 -06:00
librustc_llvm
librustc_metadata Auto merge of #37270 - Mark-Simulacrum:smallvec-optimized-arenas, r=eddyb 2016-10-26 03:47:55 -07:00
librustc_mir Auto merge of #37270 - Mark-Simulacrum:smallvec-optimized-arenas, r=eddyb 2016-10-26 03:47:55 -07:00
librustc_passes
librustc_platform_intrinsics
librustc_plugin
librustc_privacy
librustc_resolve Avoid false positive unused_extern_crates. 2016-10-25 20:38:58 +00:00
librustc_save_analysis
librustc_trans Auto merge of #37270 - Mark-Simulacrum:smallvec-optimized-arenas, r=eddyb 2016-10-26 03:47:55 -07:00
librustc_typeck Auto merge of #37270 - Mark-Simulacrum:smallvec-optimized-arenas, r=eddyb 2016-10-26 03:47:55 -07:00
librustc_unicode
librustdoc Utilize AccumulateVec to avoid heap allocations in mk_{substs, type_list, tup} calls. 2016-10-25 20:06:17 -06:00
libserialize
libstd Auto merge of #37382 - jonathandturner:rollup, r=jonathandturner 2016-10-24 16:47:38 -07:00
libsyntax Auto merge of #36421 - TimNN:check-abis, r=alexcrichton 2016-10-25 21:49:59 -07:00
libsyntax_ext
libsyntax_pos
libterm
libtest
libunwind
llvm@8c9961a9cc
rt
rtstartup
rust-installer@4f99485080
rustc
rustllvm
test Auto merge of #36421 - TimNN:check-abis, r=alexcrichton 2016-10-25 21:49:59 -07:00
tools
Cargo.lock
Cargo.toml
stage0.txt