about summary refs log tree commit diff
path: root/library/core/src/array
diff options
context:
space:
mode:
authorThe Miri Cronjob Bot <miri@cron.bot>2025-09-01 05:02:58 +0000
committerThe Miri Cronjob Bot <miri@cron.bot>2025-09-01 05:02:58 +0000
commit4cc7ccaf9812c1ba9606528345ce5a6a4060ca6c (patch)
tree3e0ff00030a6ba4eb98ee0691ba8f61a51c05b95 /library/core/src/array
parent988c077b068b9e6fb4e58650d7e921993a650983 (diff)
parentaf627f557ad4806e1de1b4800fd1a7e5a42420a8 (diff)
downloadrust-4cc7ccaf9812c1ba9606528345ce5a6a4060ca6c.tar.gz
rust-4cc7ccaf9812c1ba9606528345ce5a6a4060ca6c.zip
Merge ref '828e45ad11ce' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh.

Upstream ref: 828e45ad11ce4ab56dd64e93f1fb5dd8f0c0ae93
Filtered ref: 10ab51e1b1b8eadb430163bd78ef39c0721cfbf8

This merge was created using https://github.com/rust-lang/josh-sync.
Diffstat (limited to 'library/core/src/array')
-rw-r--r--library/core/src/array/mod.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/library/core/src/array/mod.rs b/library/core/src/array/mod.rs
index 835ee57ce23..c4bb5ab7b21 100644
--- a/library/core/src/array/mod.rs
+++ b/library/core/src/array/mod.rs
@@ -41,8 +41,6 @@ pub use iter::IntoIter;
 ///
 /// Creating multiple copies of a `String`:
 /// ```rust
-/// #![feature(array_repeat)]
-///
 /// use std::array;
 ///
 /// let string = "Hello there!".to_string();
@@ -50,7 +48,7 @@ pub use iter::IntoIter;
 /// assert_eq!(strings, ["Hello there!", "Hello there!"]);
 /// ```
 #[inline]
-#[unstable(feature = "array_repeat", issue = "126695")]
+#[stable(feature = "array_repeat", since = "CURRENT_RUSTC_VERSION")]
 pub fn repeat<T: Clone, const N: usize>(val: T) -> [T; N] {
     from_trusted_iterator(repeat_n(val, N))
 }