rust/src
bors 8484831d29 Auto merge of #30884 - durka:inclusive-ranges, r=aturon
This PR implements [RFC 1192](https://github.com/rust-lang/rfcs/blob/master/text/1192-inclusive-ranges.md), which is triple-dot syntax for inclusive range expressions. The new stuff is behind two feature gates (one for the syntax and one for the std::ops types). This replaces the deprecated functionality in std::iter. Along the way I simplified the desugaring for all ranges.

This is my first contribution to rust which changes more than one character outside of a test or comment, so please review carefully! Some of the individual commit messages have more of my notes. Also thanks for putting up with my dumb questions in #rust-internals.

- For implementing `std::ops::RangeInclusive`, I took @Stebalien's suggestion from https://github.com/rust-lang/rfcs/pull/1192#issuecomment-137864421. It seemed to me to make the implementation easier and increase type safety. If that stands, the RFC should be amended to avoid confusion.
- I also kind of like @glaebhoerl's [idea](https://github.com/rust-lang/rfcs/pull/1254#issuecomment-147815299), which is unified inclusive/exclusive range syntax something like `x>..=y`. We can experiment with this while everything is behind a feature gate.
- There are a couple of FIXMEs left (see the last commit). I didn't know what to do about `RangeArgument` and I haven't added `Index` impls yet. Those should be discussed/finished before merging.

cc @Gankro since you [complained](https://www.reddit.com/r/rust/comments/3xkfro/what_happened_to_inclusive_ranges/cy5j0yq)
cc #27777 #30877 rust-lang/rust#1192 rust-lang/rfcs#1254
relevant to #28237 (tracking issue)
2016-03-06 07:16:41 +00:00
..
bootstrap [rustbuild] fix cross compilation of std for mips(el)-linux-musl 2016-03-03 14:50:28 -05:00
build_helper
compiler-rt@b6087e82ba
compiletest
doc Auto merge of #30884 - durka:inclusive-ranges, r=aturon 2016-03-06 07:16:41 +00:00
driver
error_index_generator
etc
grammar
jemalloc@aab1c0a0e0 std: Update jemalloc again to the 4.* track 2016-03-04 09:49:39 -08:00
liballoc
liballoc_jemalloc
liballoc_system
libarena
libbacktrace
libcollections Auto merge of #30884 - durka:inclusive-ranges, r=aturon 2016-03-06 07:16:41 +00:00
libcollectionstest
libcore Auto merge of #30884 - durka:inclusive-ranges, r=aturon 2016-03-06 07:16:41 +00:00
libcoretest make skip a double ended iterator 2016-03-04 10:22:55 +01:00
libflate
libfmt_macros
libgetopts
libgraphviz
liblibc@07a9206793
liblog
librand
librbml
librustc Auto merge of #30884 - durka:inclusive-ranges, r=aturon 2016-03-06 07:16:41 +00:00
librustc_back
librustc_bitflags
librustc_borrowck
librustc_data_structures
librustc_driver Auto merge of #31671 - ranma42:printcfg, r=alexcrichton 2016-03-03 21:37:18 +00:00
librustc_front Auto merge of #30884 - durka:inclusive-ranges, r=aturon 2016-03-06 07:16:41 +00:00
librustc_lint
librustc_llvm
librustc_metadata
librustc_mir Auto merge of #30884 - durka:inclusive-ranges, r=aturon 2016-03-06 07:16:41 +00:00
librustc_passes Auto merge of #30884 - durka:inclusive-ranges, r=aturon 2016-03-06 07:16:41 +00:00
librustc_platform_intrinsics
librustc_plugin
librustc_privacy Don't treat associated types specially in def_privacy 2016-03-04 18:30:24 +00:00
librustc_resolve Finish encapsulating the details of import resolution in resolve_imports 2016-03-04 20:48:55 +00:00
librustc_trans Auto merge of #30884 - durka:inclusive-ranges, r=aturon 2016-03-06 07:16:41 +00:00
librustc_typeck Auto merge of #30884 - durka:inclusive-ranges, r=aturon 2016-03-06 07:16:41 +00:00
librustc_unicode
librustdoc Auto merge of #32022 - gohyda:master, r=alexcrichton 2016-03-04 13:47:02 +00:00
libserialize
libstd Auto merge of #30884 - durka:inclusive-ranges, r=aturon 2016-03-06 07:16:41 +00:00
libsyntax Auto merge of #30884 - durka:inclusive-ranges, r=aturon 2016-03-06 07:16:41 +00:00
libsyntax_ext
libterm
libtest
llvm@69ef168544
rt
rtstartup
rust-installer@c37d3747da
rustbook
rustc
rustllvm
test Auto merge of #30884 - durka:inclusive-ranges, r=aturon 2016-03-06 07:16:41 +00:00
nightlies.txt
snapshots.txt