Skip to content

Commit

Permalink
Tracking issue numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
nagisa committed Mar 22, 2017
1 parent 2f0dd63 commit 99e4c0a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions src/libcollections/str.rs
Expand Up @@ -306,7 +306,7 @@ impl str {
/// assert!(v.get(..8).is_none());
/// assert!(v.get(..42).is_none());
/// ```
#[unstable(feature = "str_checked_slicing", issue = "0")]
#[unstable(feature = "str_checked_slicing", issue = "39932")]
#[inline]
pub fn get<I: SliceIndex<str>>(&self, i: I) -> Option<&I::Output> {
core_str::StrExt::get(self, i)
Expand All @@ -327,7 +327,7 @@ impl str {
/// assert!(v.get_mut(..8).is_none());
/// assert!(v.get_mut(..42).is_none());
/// ```
#[unstable(feature = "str_checked_slicing", issue = "0")]
#[unstable(feature = "str_checked_slicing", issue = "39932")]
#[inline]
pub fn get_mut<I: SliceIndex<str>>(&mut self, i: I) -> Option<&mut I::Output> {
core_str::StrExt::get_mut(self, i)
Expand Down Expand Up @@ -360,7 +360,7 @@ impl str {
/// assert_eq!("🌏", v.get_unchecked(7..11));
/// }
/// ```
#[unstable(feature = "str_checked_slicing", issue = "0")]
#[unstable(feature = "str_checked_slicing", issue = "39932")]
#[inline]
pub unsafe fn get_unchecked<I: SliceIndex<str>>(&self, i: I) -> &I::Output {
core_str::StrExt::get_unchecked(self, i)
Expand Down Expand Up @@ -393,7 +393,7 @@ impl str {
/// assert_eq!("🌏", v.get_unchecked_mut(7..11));
/// }
/// ```
#[unstable(feature = "str_checked_slicing", issue = "0")]
#[unstable(feature = "str_checked_slicing", issue = "39932")]
#[inline]
pub unsafe fn get_unchecked_mut<I: SliceIndex<str>>(&mut self, i: I) -> &mut I::Output {
core_str::StrExt::get_unchecked_mut(self, i)
Expand Down
20 changes: 10 additions & 10 deletions src/libcore/str/mod.rs
Expand Up @@ -1683,7 +1683,7 @@ mod traits {
}
}

#[unstable(feature = "str_checked_slicing", issue = "0")]
#[unstable(feature = "str_checked_slicing", issue = "39932")]
impl SliceIndex<str> for ops::RangeFull {
type Output = str;
#[inline]
Expand Down Expand Up @@ -1712,7 +1712,7 @@ mod traits {
}
}

#[unstable(feature = "str_checked_slicing", issue = "0")]
#[unstable(feature = "str_checked_slicing", issue = "39932")]
impl SliceIndex<str> for ops::Range<usize> {
type Output = str;
#[inline]
Expand Down Expand Up @@ -1766,7 +1766,7 @@ mod traits {
}
}

#[unstable(feature = "str_checked_slicing", issue = "0")]
#[unstable(feature = "str_checked_slicing", issue = "39932")]
impl SliceIndex<str> for ops::RangeTo<usize> {
type Output = str;
#[inline]
Expand Down Expand Up @@ -1810,7 +1810,7 @@ mod traits {
}
}

#[unstable(feature = "str_checked_slicing", issue = "0")]
#[unstable(feature = "str_checked_slicing", issue = "39932")]
impl SliceIndex<str> for ops::RangeFrom<usize> {
type Output = str;
#[inline]
Expand Down Expand Up @@ -1856,7 +1856,7 @@ mod traits {
}
}

#[unstable(feature = "str_checked_slicing", issue = "0")]
#[unstable(feature = "str_checked_slicing", issue = "39932")]
impl SliceIndex<str> for ops::RangeInclusive<usize> {
type Output = str;
#[inline]
Expand Down Expand Up @@ -1905,7 +1905,7 @@ mod traits {



#[unstable(feature = "str_checked_slicing", issue = "0")]
#[unstable(feature = "str_checked_slicing", issue = "39932")]
impl SliceIndex<str> for ops::RangeToInclusive<usize> {
type Output = str;
#[inline]
Expand Down Expand Up @@ -2001,13 +2001,13 @@ pub trait StrExt {
#[rustc_deprecated(since = "1.6.0", reason = "use lines() instead now")]
#[allow(deprecated)]
fn lines_any(&self) -> LinesAny;
#[unstable(feature = "str_checked_slicing", issue = "0")]
#[unstable(feature = "str_checked_slicing", issue = "39932")]
fn get<I: SliceIndex<str>>(&self, i: I) -> Option<&I::Output>;
#[unstable(feature = "str_checked_slicing", issue = "0")]
#[unstable(feature = "str_checked_slicing", issue = "39932")]
fn get_mut<I: SliceIndex<str>>(&mut self, i: I) -> Option<&mut I::Output>;
#[unstable(feature = "str_checked_slicing", issue = "0")]
#[unstable(feature = "str_checked_slicing", issue = "39932")]
unsafe fn get_unchecked<I: SliceIndex<str>>(&self, i: I) -> &I::Output;
#[unstable(feature = "str_checked_slicing", issue = "0")]
#[unstable(feature = "str_checked_slicing", issue = "39932")]
unsafe fn get_unchecked_mut<I: SliceIndex<str>>(&mut self, i: I) -> &mut I::Output;
#[stable(feature = "core", since = "1.6.0")]
unsafe fn slice_unchecked(&self, begin: usize, end: usize) -> &str;
Expand Down

0 comments on commit 99e4c0a

Please sign in to comment.