rust/src
bors 17600c1ea7 Auto merge of #44682 - bluss:iter-rfold, r=dtolnay
Add iterator method .rfold(init, function); the reverse of fold

rfold is the reverse version of fold.

Fold allows iterators to implement a different (non-resumable) internal
iteration when it is more efficient than the external iteration implemented
through the next method. (Common examples are VecDeque and .chain()).

Introduce rfold() so that the same customization is available for reverse
iteration. This is achieved by both adding the method, and by having the
Rev\<I> adaptor connect Rev::rfold → I::fold and Rev::fold → I::rfold.

On the surface, rfold(..) is just .rev().fold(..), but the special case
implementations allow a data structure specific fold to be used through for
example .iter().rev(); we thus have gains even for users never calling exactly
rfold themselves.
2017-09-21 23:44:11 +00:00
..
bootstrap Disable clippy building 2017-09-19 16:08:19 +02:00
build_helper Add a file to trivially disable tool building or testing 2017-09-17 21:41:45 +02:00
ci Improve documentation 2017-09-17 21:40:13 +02:00
doc Auto merge of #44620 - zackmdavis:rfc_1940_housekeeping, r=nikomatsakis 2017-09-19 13:06:31 +00:00
etc
grammar
jemalloc@1f5a28755e
liballoc Auto merge of #44682 - bluss:iter-rfold, r=dtolnay 2017-09-21 23:44:11 +00:00
liballoc_jemalloc Add a file to trivially disable tool building or testing 2017-09-17 21:41:45 +02:00
liballoc_system
libarena stabilized needs_drop (fixes #41890) 2017-09-16 23:41:04 +02:00
libbacktrace
libcollections
libcompiler_builtins@ef4951582f
libcore Auto merge of #44682 - bluss:iter-rfold, r=dtolnay 2017-09-21 23:44:11 +00:00
libfmt_macros
libgetopts
libgraphviz
liblibc@95848f9622
libpanic_abort
libpanic_unwind
libproc_macro rustc: Forbid interpolated tokens in the HIR 2017-09-18 17:20:12 -07:00
libprofiler_builtins
librand
librustc Auto merge of #44627 - zackmdavis:the_capgate_perogative, r=nrc 2017-09-21 09:41:26 +00:00
librustc_allocator
librustc_apfloat Remove rustc_bitflags; use the bitflags crate 2017-09-17 14:19:24 -04:00
librustc_asan
librustc_back rework the README.md for rustc and add other readmes 2017-09-19 09:00:59 -04:00
librustc_borrowck Only consider yields coming after the expressions when computing generator interiors 2017-09-20 16:36:24 +03:00
librustc_const_eval incr.comp.: Already hash HIR bodies during metadata export so they don't have to be hashed in downstream crates. 2017-09-18 11:26:11 +02:00
librustc_const_math change #![feature(const_fn)] to specific gates 2017-09-16 15:53:02 +00:00
librustc_cratesio_shim Remove rustc_bitflags; use the bitflags crate 2017-09-17 14:19:24 -04:00
librustc_data_structures incr.comp.: Fix rebase fallout. 2017-09-18 12:14:52 +02:00
librustc_driver rework the README.md for rustc and add other readmes 2017-09-19 09:00:59 -04:00
librustc_errors
librustc_incremental incr.comp.: Remove tcx from StableHashingContext. 2017-09-18 11:29:47 +02:00
librustc_lint
librustc_llvm Remove rustc_bitflags; use the bitflags crate 2017-09-17 14:19:24 -04:00
librustc_lsan
librustc_metadata Fix ICE 2017-09-20 20:48:06 +02:00
librustc_mir Auto merge of #44551 - scalexm:copy-clone-closures, r=arielb1 2017-09-21 00:35:33 +00:00
librustc_msan
librustc_passes
librustc_platform_intrinsics
librustc_plugin
librustc_privacy
librustc_resolve Auto merge of #44215 - oli-obk:import_sugg, r=nrc 2017-09-21 20:12:22 +00:00
librustc_save_analysis
librustc_trans Auto merge of #44707 - GuillaumeGomez:rollup, r=arielb1 2017-09-20 10:04:31 +00:00
librustc_trans_utils change #![feature(const_fn)] to specific gates 2017-09-16 15:53:02 +00:00
librustc_tsan
librustc_typeck address review comments 2017-09-20 16:49:21 +03:00
librustdoc Auto merge of #44350 - GuillaumeGomez:id-false-positive, r=QuietMisdreavus 2017-09-20 02:46:25 +00:00
libserialize
libstd Auto merge of #44525 - aidanhs:aphs-no-null-deref, r=alexcrichton 2017-09-20 14:50:31 +00:00
libstd_unicode [libstd_unicode] Expose UnicodeVersion type 2017-09-18 20:39:17 -07:00
libsyntax Fix ICE 2017-09-20 20:48:06 +02:00
libsyntax_ext
libsyntax_pos
libterm
libtest
libunwind
llvm@d9e7d2696e
rt
rtstartup
rustc
rustllvm
test Auto merge of #44215 - oli-obk:import_sugg, r=nrc 2017-09-21 20:12:22 +00:00
tools Add clippy to toolstate.toml 2017-09-19 09:20:35 +02:00
Cargo.lock Remove rustc_bitflags; use the bitflags crate 2017-09-17 14:19:24 -04:00
Cargo.toml Use double quotes to appease some TOML parsers 2017-09-17 13:14:37 -04:00
stage0.txt