Skip to content

Rollup of 10 pull requests #42381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Jun 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
22c4ee3
Improve error message for const extern fn
Manishearth May 30, 2017
0fba1f7
Update rust-installer for Windows executable mode
cuviper Jun 1, 2017
0967e24
Deprecate Range*::step_by
scottmcm May 23, 2017
1723e06
Deprecate iter::range::StepBy
scottmcm May 30, 2017
15dff84
Avoid range::step_by in another test
scottmcm May 30, 2017
edefcb2
Don't byteswap Fingerprints when encoding
jcowgill May 31, 2017
a74338d
rustdoc: Rename `Vector` and `FixedVector` to `Slice` and `Array`
ollie27 May 31, 2017
24671ba
Syntax highlight rust code in librustc/dep_graph/README.md
bjorn3 Jun 1, 2017
da100fe
Support VS 2017
brson May 24, 2017
818ca98
Add [[T]] -> [T] examples to SliceConcatExt docs
mbrubeck Jun 2, 2017
d3f3e26
Rewrite `Receiver::iter` doc example to show resulting values.
frewsxcv Jun 2, 2017
eb48ee7
Rewrite `Receiver::try_iter` doc example to show resulting values.
frewsxcv Jun 2, 2017
b76b9e1
Expands `detach` documentation in `thread::JoinHande`.
May 13, 2017
32f418f
Rollup merge of #41981 - gamazeps:thread-detach, r=frewsxcv
Mark-Simulacrum Jun 2, 2017
551dd7c
Rollup merge of #42225 - brson:vs2017, r=alexcrichton
Mark-Simulacrum Jun 2, 2017
1316281
Rollup merge of #42310 - scottmcm:deprecate-range-stepby, r=alexcrichton
Mark-Simulacrum Jun 2, 2017
85e5e20
Rollup merge of #42319 - Manishearth:const-extern, r=nikomatsakis
Mark-Simulacrum Jun 2, 2017
c7287d9
Rollup merge of #42335 - jcowgill:fingerprint-be, r=michaelwoerister
Mark-Simulacrum Jun 2, 2017
5775c9e
Rollup merge of #42343 - cuviper:install-executables, r=alexcrichton
Mark-Simulacrum Jun 2, 2017
8129667
Rollup merge of #42355 - bjorn3:patch-1, r=Mark-Simulacrum
Mark-Simulacrum Jun 2, 2017
7a2d4b3
Rollup merge of #42360 - ollie27:rustdoc_vector_rename, r=GuillaumeGomez
Mark-Simulacrum Jun 2, 2017
1a3d026
Rollup merge of #42370 - mbrubeck:docs, r=frewsxcv
Mark-Simulacrum Jun 2, 2017
e05f1c1
Rollup merge of #42372 - frewsxcv:frewsxcv/improve-receiver-docs, r=Q…
Mark-Simulacrum Jun 2, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 23 additions & 22 deletions src/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/bootstrap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ num_cpus = "1.0"
toml = "0.1"
getopts = "0.2"
rustc-serialize = "0.3"
gcc = "0.3.46"
gcc = "0.3.50"
libc = "0.2"
2 changes: 1 addition & 1 deletion src/liballoc_jemalloc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ libc = { path = "../rustc/libc_shim" }

[build-dependencies]
build_helper = { path = "../build_helper" }
gcc = "0.3.27"
gcc = "0.3.50"

[features]
debug = []
2 changes: 2 additions & 0 deletions src/libcollections/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1515,6 +1515,7 @@ pub trait SliceConcatExt<T: ?Sized> {
///
/// ```
/// assert_eq!(["hello", "world"].concat(), "helloworld");
/// assert_eq!([[1, 2], [3, 4]].concat(), [1, 2, 3, 4]);
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
fn concat(&self) -> Self::Output;
Expand All @@ -1526,6 +1527,7 @@ pub trait SliceConcatExt<T: ?Sized> {
///
/// ```
/// assert_eq!(["hello", "world"].join(" "), "hello world");
/// assert_eq!([[1, 2], [3, 4]].join(&0), [1, 2, 0, 3, 4]);
/// ```
#[stable(feature = "rename_connect_to_join", since = "1.3.0")]
fn join(&self, sep: &T) -> Self::Output;
Expand Down
2 changes: 1 addition & 1 deletion src/libcollections/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
#![feature(collections)]
#![feature(const_fn)]
#![feature(exact_size_is_empty)]
#![feature(iterator_step_by)]
#![feature(pattern)]
#![feature(placement_in_syntax)]
#![feature(rand)]
#![feature(slice_rotate)]
#![feature(splice)]
#![feature(step_by)]
#![feature(str_escape)]
#![feature(test)]
#![feature(unboxed_closures)]
Expand Down
3 changes: 2 additions & 1 deletion src/libcollections/tests/vec_deque.rs
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,8 @@ fn test_from_iter() {
let u: Vec<_> = deq.iter().cloned().collect();
assert_eq!(u, v);

let seq = (0..).step_by(2).take(256);
// FIXME #27741: Remove `.skip(0)` when Range::step_by is fully removed
let seq = (0..).skip(0).step_by(2).take(256);
let deq: VecDeque<_> = seq.collect();
for (i, &x) in deq.iter().enumerate() {
assert_eq!(2 * i, x);
Expand Down
2 changes: 1 addition & 1 deletion src/libcompiler_builtins/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ core = { path = "../libcore" }

[build-dependencies]
build_helper = { path = "../build_helper" }
gcc = "0.3.27"
gcc = "0.3.50"
3 changes: 3 additions & 0 deletions src/libcore/iter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,9 @@ pub use self::iterator::Iterator;
pub use self::range::Step;
#[unstable(feature = "step_by", reason = "recent addition",
issue = "27741")]
#[rustc_deprecated(since = "1.19.0",
reason = "replaced by `iter::StepBy`")]
#[allow(deprecated)]
pub use self::range::StepBy as DeprecatedStepBy;

#[stable(feature = "rust1", since = "1.0.0")]
Expand Down
18 changes: 18 additions & 0 deletions src/libcore/iter/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ step_impl_no_between!(u128 i128);
#[derive(Clone, Debug)]
#[unstable(feature = "step_by", reason = "recent addition",
issue = "27741")]
#[rustc_deprecated(since = "1.19.0",
reason = "replaced by `iter::StepBy`")]
#[allow(deprecated)]
pub struct StepBy<A, R> {
step_by: A,
range: R,
Expand All @@ -272,6 +275,9 @@ impl<A: Step> ops::RangeFrom<A> {
/// ```
#[unstable(feature = "step_by", reason = "recent addition",
issue = "27741")]
#[rustc_deprecated(since = "1.19.0",
reason = "replaced by `Iterator::step_by`")]
#[allow(deprecated)]
pub fn step_by(self, by: A) -> StepBy<A, Self> {
StepBy {
step_by: by,
Expand All @@ -297,6 +303,9 @@ impl<A: Step> ops::Range<A> {
/// ```
#[unstable(feature = "step_by", reason = "recent addition",
issue = "27741")]
#[rustc_deprecated(since = "1.19.0",
reason = "replaced by `Iterator::step_by`")]
#[allow(deprecated)]
pub fn step_by(self, by: A) -> StepBy<A, Self> {
StepBy {
step_by: by,
Expand All @@ -321,6 +330,9 @@ impl<A: Step> ops::RangeInclusive<A> {
/// ```
#[unstable(feature = "step_by", reason = "recent addition",
issue = "27741")]
#[rustc_deprecated(since = "1.19.0",
reason = "replaced by `Iterator::step_by`")]
#[allow(deprecated)]
pub fn step_by(self, by: A) -> StepBy<A, Self> {
StepBy {
step_by: by,
Expand All @@ -331,6 +343,7 @@ impl<A: Step> ops::RangeInclusive<A> {

#[unstable(feature = "step_by", reason = "recent addition",
issue = "27741")]
#[allow(deprecated)]
impl<A> Iterator for StepBy<A, ops::RangeFrom<A>> where
A: Clone,
for<'a> &'a A: Add<&'a A, Output = A>
Expand All @@ -351,11 +364,13 @@ impl<A> Iterator for StepBy<A, ops::RangeFrom<A>> where
}

#[unstable(feature = "fused", issue = "35602")]
#[allow(deprecated)]
impl<A> FusedIterator for StepBy<A, ops::RangeFrom<A>>
where A: Clone, for<'a> &'a A: Add<&'a A, Output = A> {}

#[unstable(feature = "step_by", reason = "recent addition",
issue = "27741")]
#[allow(deprecated)]
impl<A: Step + Clone> Iterator for StepBy<A, ops::Range<A>> {
type Item = A;

Expand Down Expand Up @@ -393,11 +408,13 @@ impl<A: Step + Clone> Iterator for StepBy<A, ops::Range<A>> {
}

#[unstable(feature = "fused", issue = "35602")]
#[allow(deprecated)]
impl<A: Step + Clone> FusedIterator for StepBy<A, ops::Range<A>> {}

#[unstable(feature = "inclusive_range",
reason = "recently added, follows RFC",
issue = "28237")]
#[allow(deprecated)]
impl<A: Step + Clone> Iterator for StepBy<A, ops::RangeInclusive<A>> {
type Item = A;

Expand Down Expand Up @@ -437,6 +454,7 @@ impl<A: Step + Clone> Iterator for StepBy<A, ops::RangeInclusive<A>> {
}

#[unstable(feature = "fused", issue = "35602")]
#[allow(deprecated)]
impl<A: Step + Clone> FusedIterator for StepBy<A, ops::RangeInclusive<A>> {}

macro_rules! range_exact_iter_impl {
Expand Down
Loading