Skip to content

Commit

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

Stabilize `string_extend_from_within`

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

Closes  rust-lang#103806.
  • Loading branch information
rust-timer authored Mar 5, 2025
2 parents 4559163 + 78615ff commit 56f7297
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 56f7297

Please sign in to comment.