mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
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.
This commit is contained in:
commit
604d1ba61c
@ -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>,
|
||||
|
Loading…
Reference in New Issue
Block a user