Skip to content

Commit

Permalink
Rollup merge of rust-lang#137569 - aDotInTheVoid:for-iurii, r=ibrahee…
Browse files Browse the repository at this point in the history
…mdev

Stabilize `string_extend_from_within`

FCP'd here: rust-lang#103806 (comment).

Closes  rust-lang#103806.
  • Loading branch information
workingjubilee authored Mar 5, 2025
2 parents bcf40c6 + 78615ff commit 9d50e7d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/alloc/src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,6 @@ impl String {
/// # Examples
///
/// ```
/// #![feature(string_extend_from_within)]
/// let mut string = String::from("abcde");
///
/// string.extend_from_within(2..);
Expand All @@ -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>,
Expand Down

0 comments on commit 9d50e7d

Please sign in to comment.