about summary refs log tree commit diff
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2025-03-05 21:46:41 +0800
committerGitHub <noreply@github.com>2025-03-05 21:46:41 +0800
commit604d1ba61cc6768e96f0822d9480bbff8dc9b7be (patch)
tree723336fc143c63e7db372299415ffd3c55eff878
parent24d481cc2927d12c343dffb0d103267f978db1bd (diff)
parent78615ff2ae2813a1fd4e26ab1d9f7e914f6c7902 (diff)
downloadrust-604d1ba61cc6768e96f0822d9480bbff8dc9b7be.tar.gz
rust-604d1ba61cc6768e96f0822d9480bbff8dc9b7be.zip
Rollup merge of #137569 - aDotInTheVoid:for-iurii, r=ibraheemdev
Stabilize `string_extend_from_within`

FCP'd here: https://github.com/rust-lang/rust/issues/103806#issuecomment-2674989531.

Closes  #103806.
-rw-r--r--library/alloc/src/string.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs
index f10ef1fca13..fc4b93ccf8c 100644
--- a/library/alloc/src/string.rs
+++ b/library/alloc/src/string.rs
@@ -1134,7 +1134,6 @@ impl String {
     /// # Examples
     ///
     /// ```
-    /// #![feature(string_extend_from_within)]
     /// let mut string = String::from("abcde");
     ///
     /// string.extend_from_within(2..);
@@ -1147,7 +1146,7 @@ impl String {
     /// assert_eq!(string, "abcdecdeabecde");
     /// ```
     #[cfg(not(no_global_oom_handling))]
-    #[unstable(feature = "string_extend_from_within", issue = "103806")]
+    #[stable(feature = "string_extend_from_within", since = "CURRENT_RUSTC_VERSION")]
     pub fn extend_from_within<R>(&mut self, src: R)
     where
         R: RangeBounds<usize>,