Skip to content

Commit

Permalink
Use the new String::splice tracking issue for string::Splice
Browse files Browse the repository at this point in the history
I backported the stabilization of Vec::splice and the move of
String::splice to the new tracking issue, but not the new signature of
String::splice in 1.22. This combination requires updating the tracking
issue on some code that no longer exists in nightly.
  • Loading branch information
dtolnay committed Sep 26, 2017
1 parent a8117df commit f38d353
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/liballoc/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2250,7 +2250,7 @@ impl<'a> FusedIterator for Drain<'a> {}
/// [`splice()`]: struct.String.html#method.splice
/// [`String`]: struct.String.html
#[derive(Debug)]
#[unstable(feature = "splice", reason = "recently added", issue = "32310")]
#[unstable(feature = "splice", reason = "recently added", issue = "44643")]
pub struct Splice<'a, 'b> {
/// Will be used as &'a mut String in the destructor
string: *mut String,
Expand All @@ -2263,12 +2263,12 @@ pub struct Splice<'a, 'b> {
replace_with: &'b str,
}

#[unstable(feature = "splice", reason = "recently added", issue = "32310")]
#[unstable(feature = "splice", reason = "recently added", issue = "44643")]
unsafe impl<'a, 'b> Sync for Splice<'a, 'b> {}
#[unstable(feature = "splice", reason = "recently added", issue = "32310")]
#[unstable(feature = "splice", reason = "recently added", issue = "44643")]
unsafe impl<'a, 'b> Send for Splice<'a, 'b> {}

#[unstable(feature = "splice", reason = "recently added", issue = "32310")]
#[unstable(feature = "splice", reason = "recently added", issue = "44643")]
impl<'a, 'b> Drop for Splice<'a, 'b> {
fn drop(&mut self) {
unsafe {
Expand All @@ -2278,7 +2278,7 @@ impl<'a, 'b> Drop for Splice<'a, 'b> {
}
}

#[unstable(feature = "splice", reason = "recently added", issue = "32310")]
#[unstable(feature = "splice", reason = "recently added", issue = "44643")]
impl<'a, 'b> Iterator for Splice<'a, 'b> {
type Item = char;

Expand All @@ -2292,7 +2292,7 @@ impl<'a, 'b> Iterator for Splice<'a, 'b> {
}
}

#[unstable(feature = "splice", reason = "recently added", issue = "32310")]
#[unstable(feature = "splice", reason = "recently added", issue = "44643")]
impl<'a, 'b> DoubleEndedIterator for Splice<'a, 'b> {
#[inline]
fn next_back(&mut self) -> Option<char> {
Expand Down

0 comments on commit f38d353

Please sign in to comment.