Skip to content

Commit 536e9b8

Browse files
committed
Auto merge of #42381 - Mark-Simulacrum:rollup, r=Mark-Simulacrum
Rollup of 10 pull requests - Successful merges: #41981, #42225, #42310, #42319, #42335, #42343, #42355, #42360, #42370, #42372 - Failed merges:
2 parents d7798c3 + e05f1c1 commit 536e9b8

File tree

29 files changed

+184
-614
lines changed

29 files changed

+184
-614
lines changed

src/Cargo.lock

+23-22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/bootstrap/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ num_cpus = "1.0"
3636
toml = "0.1"
3737
getopts = "0.2"
3838
rustc-serialize = "0.3"
39-
gcc = "0.3.46"
39+
gcc = "0.3.50"
4040
libc = "0.2"

src/liballoc_jemalloc/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ libc = { path = "../rustc/libc_shim" }
1717

1818
[build-dependencies]
1919
build_helper = { path = "../build_helper" }
20-
gcc = "0.3.27"
20+
gcc = "0.3.50"
2121

2222
[features]
2323
debug = []

src/libcollections/slice.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1515,6 +1515,7 @@ pub trait SliceConcatExt<T: ?Sized> {
15151515
///
15161516
/// ```
15171517
/// assert_eq!(["hello", "world"].concat(), "helloworld");
1518+
/// assert_eq!([[1, 2], [3, 4]].concat(), [1, 2, 3, 4]);
15181519
/// ```
15191520
#[stable(feature = "rust1", since = "1.0.0")]
15201521
fn concat(&self) -> Self::Output;
@@ -1526,6 +1527,7 @@ pub trait SliceConcatExt<T: ?Sized> {
15261527
///
15271528
/// ```
15281529
/// assert_eq!(["hello", "world"].join(" "), "hello world");
1530+
/// assert_eq!([[1, 2], [3, 4]].join(&0), [1, 2, 0, 3, 4]);
15291531
/// ```
15301532
#[stable(feature = "rename_connect_to_join", since = "1.3.0")]
15311533
fn join(&self, sep: &T) -> Self::Output;

src/libcollections/tests/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
#![feature(collections)]
1717
#![feature(const_fn)]
1818
#![feature(exact_size_is_empty)]
19+
#![feature(iterator_step_by)]
1920
#![feature(pattern)]
2021
#![feature(placement_in_syntax)]
2122
#![feature(rand)]
2223
#![feature(slice_rotate)]
2324
#![feature(splice)]
24-
#![feature(step_by)]
2525
#![feature(str_escape)]
2626
#![feature(test)]
2727
#![feature(unboxed_closures)]

src/libcollections/tests/vec_deque.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,8 @@ fn test_from_iter() {
510510
let u: Vec<_> = deq.iter().cloned().collect();
511511
assert_eq!(u, v);
512512

513-
let seq = (0..).step_by(2).take(256);
513+
// FIXME #27741: Remove `.skip(0)` when Range::step_by is fully removed
514+
let seq = (0..).skip(0).step_by(2).take(256);
514515
let deq: VecDeque<_> = seq.collect();
515516
for (i, &x) in deq.iter().enumerate() {
516517
assert_eq!(2 * i, x);

src/libcompiler_builtins/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ core = { path = "../libcore" }
1616

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

src/libcore/iter/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,9 @@ pub use self::iterator::Iterator;
313313
pub use self::range::Step;
314314
#[unstable(feature = "step_by", reason = "recent addition",
315315
issue = "27741")]
316+
#[rustc_deprecated(since = "1.19.0",
317+
reason = "replaced by `iter::StepBy`")]
318+
#[allow(deprecated)]
316319
pub use self::range::StepBy as DeprecatedStepBy;
317320

318321
#[stable(feature = "rust1", since = "1.0.0")]

src/libcore/iter/range.rs

+18
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@ step_impl_no_between!(u128 i128);
252252
#[derive(Clone, Debug)]
253253
#[unstable(feature = "step_by", reason = "recent addition",
254254
issue = "27741")]
255+
#[rustc_deprecated(since = "1.19.0",
256+
reason = "replaced by `iter::StepBy`")]
257+
#[allow(deprecated)]
255258
pub struct StepBy<A, R> {
256259
step_by: A,
257260
range: R,
@@ -272,6 +275,9 @@ impl<A: Step> ops::RangeFrom<A> {
272275
/// ```
273276
#[unstable(feature = "step_by", reason = "recent addition",
274277
issue = "27741")]
278+
#[rustc_deprecated(since = "1.19.0",
279+
reason = "replaced by `Iterator::step_by`")]
280+
#[allow(deprecated)]
275281
pub fn step_by(self, by: A) -> StepBy<A, Self> {
276282
StepBy {
277283
step_by: by,
@@ -297,6 +303,9 @@ impl<A: Step> ops::Range<A> {
297303
/// ```
298304
#[unstable(feature = "step_by", reason = "recent addition",
299305
issue = "27741")]
306+
#[rustc_deprecated(since = "1.19.0",
307+
reason = "replaced by `Iterator::step_by`")]
308+
#[allow(deprecated)]
300309
pub fn step_by(self, by: A) -> StepBy<A, Self> {
301310
StepBy {
302311
step_by: by,
@@ -321,6 +330,9 @@ impl<A: Step> ops::RangeInclusive<A> {
321330
/// ```
322331
#[unstable(feature = "step_by", reason = "recent addition",
323332
issue = "27741")]
333+
#[rustc_deprecated(since = "1.19.0",
334+
reason = "replaced by `Iterator::step_by`")]
335+
#[allow(deprecated)]
324336
pub fn step_by(self, by: A) -> StepBy<A, Self> {
325337
StepBy {
326338
step_by: by,
@@ -331,6 +343,7 @@ impl<A: Step> ops::RangeInclusive<A> {
331343

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

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

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

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

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

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

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

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

442460
macro_rules! range_exact_iter_impl {

0 commit comments

Comments
 (0)