about summary refs log tree commit diff
path: root/src/libcore/str
diff options
context:
space:
mode:
authorOliver Middleton <olliemail27@gmail.com>2017-12-27 14:11:05 +0000
committerOliver Middleton <olliemail27@gmail.com>2017-12-27 14:11:05 +0000
commita8d107be258514261a9366a8a384e370eb0a9628 (patch)
tree9cae5f25d66361427dce83d520c9fc3ecb659719 /src/libcore/str
parent0efdfa1d6220484770e3730062b92a9d2b2e20b9 (diff)
Correct a few stability attributes
Diffstat (limited to 'src/libcore/str')
-rw-r--r--src/libcore/str/mod.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs
index 1ca995cae6d..765b369e4b2 100644
--- a/src/libcore/str/mod.rs
+++ b/src/libcore/str/mod.rs
@@ -1997,7 +1997,9 @@ mod traits {
         }
     }
 
-    #[stable(feature = "str_checked_slicing", since = "1.20.0")]
+    #[unstable(feature = "inclusive_range",
+               reason = "recently added, follows RFC",
+               issue = "28237")]
     impl SliceIndex<str> for ops::RangeInclusive<usize> {
         type Output = str;
         #[inline]
@@ -2040,7 +2042,9 @@ mod traits {
 
 
 
-    #[stable(feature = "str_checked_slicing", since = "1.20.0")]
+    #[unstable(feature = "inclusive_range",
+               reason = "recently added, follows RFC",
+               issue = "28237")]
     impl SliceIndex<str> for ops::RangeToInclusive<usize> {
         type Output = str;
         #[inline]