Skip to content

Commit b038197

Browse files
committed
Stabilize core::iter::chain
1 parent 213d946 commit b038197

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

library/core/src/iter/adapters/chain.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ impl<A, B> Chain<A, B> {
4545
/// # Examples
4646
///
4747
/// ```
48-
/// #![feature(iter_chain)]
49-
///
5048
/// use std::iter::chain;
5149
///
5250
/// let a = [1, 2, 3];
@@ -62,7 +60,7 @@ impl<A, B> Chain<A, B> {
6260
/// assert_eq!(iter.next(), Some(6));
6361
/// assert_eq!(iter.next(), None);
6462
/// ```
65-
#[unstable(feature = "iter_chain", reason = "recently added", issue = "125964")]
63+
#[stable(feature = "iter_chain", since = "CURRENT_RUSTC_VERSION")]
6664
pub fn chain<A, B>(a: A, b: B) -> Chain<A::IntoIter, B::IntoIter>
6765
where
6866
A: IntoIterator,

library/core/src/iter/adapters/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ mod zip;
3232
pub use self::array_chunks::ArrayChunks;
3333
#[unstable(feature = "std_internals", issue = "none")]
3434
pub use self::by_ref_sized::ByRefSized;
35-
#[unstable(feature = "iter_chain", reason = "recently added", issue = "125964")]
35+
#[stable(feature = "iter_chain", since = "CURRENT_RUSTC_VERSION")]
3636
pub use self::chain::chain;
3737
#[stable(feature = "iter_cloned", since = "1.1.0")]
3838
pub use self::cloned::Cloned;

library/core/src/iter/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ pub use self::adapters::StepBy;
404404
pub use self::adapters::TrustedRandomAccess;
405405
#[unstable(feature = "trusted_random_access", issue = "none")]
406406
pub use self::adapters::TrustedRandomAccessNoCoerce;
407-
#[unstable(feature = "iter_chain", reason = "recently added", issue = "125964")]
407+
#[stable(feature = "iter_chain", since = "CURRENT_RUSTC_VERSION")]
408408
pub use self::adapters::chain;
409409
pub(crate) use self::adapters::try_process;
410410
#[stable(feature = "iter_zip", since = "1.59.0")]

library/coretests/tests/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
#![feature(isolate_most_least_significant_one)]
6060
#![feature(iter_advance_by)]
6161
#![feature(iter_array_chunks)]
62-
#![feature(iter_chain)]
6362
#![feature(iter_collect_into)]
6463
#![feature(iter_intersperse)]
6564
#![feature(iter_is_partitioned)]

0 commit comments

Comments
 (0)