diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2015-07-01 07:39:47 +0200 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2015-07-13 16:21:43 +0200 |
| commit | eb99f0e4207915f4cb4246d9d6bc6109fa04400c (patch) | |
| tree | ffb8c1555c4915b6bc874a74fd47fccfe2442d84 | |
| parent | 7469914e96a511487e8248d2f8a583befb02149f (diff) | |
| download | rust-eb99f0e4207915f4cb4246d9d6bc6109fa04400c.tar.gz rust-eb99f0e4207915f4cb4246d9d6bc6109fa04400c.zip | |
Mark some new things as unstable.
| -rw-r--r-- | src/libcollections/str.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs index 306a8ba3e09..4bd86bb6069 100644 --- a/src/libcollections/str.rs +++ b/src/libcollections/str.rs @@ -549,7 +549,7 @@ impl str { /// Takes a bytewise mutable slice from a string. /// /// Same as `slice_unchecked`, but works with `&mut str` instead of `&str`. - #[stable(feature = "derefmut_for_string", since = "1.2.0")] + #[unstable(feature = "str_slice_mut", reason = "recently added")] pub unsafe fn slice_mut_unchecked(&mut self, begin: usize, end: usize) -> &mut str { core_str::StrExt::slice_mut_unchecked(self, begin, end) } @@ -789,12 +789,14 @@ impl str { /// assert_eq!(b, " 老虎 Léopard"); /// ``` #[inline] + #[unstable(feature = "str_split_at", reason = "recently added")] pub fn split_at(&self, mid: usize) -> (&str, &str) { core_str::StrExt::split_at(self, mid) } /// Divide one mutable string slice into two at an index. #[inline] + #[unstable(feature = "str_split_at", reason = "recently added")] pub fn split_at_mut(&mut self, mid: usize) -> (&mut str, &mut str) { core_str::StrExt::split_at_mut(self, mid) } |
