Stabilize str::as_mut_ptr

This commit is contained in:
Yuki OKUSHI 2019-04-29 02:33:50 +09:00
parent 938d4ffe16
commit 4c0f01cc27

View file

@ -2214,7 +2214,7 @@ impl str {
/// modified in a way that it remains valid UTF-8.
///
/// [`u8`]: primitive.u8.html
#[unstable(feature = "str_as_mut_ptr", issue = "58215")]
#[stable(feature = "str_as_mut_ptr", since = "1.36.0")]
#[inline]
pub fn as_mut_ptr(&mut self) -> *mut u8 {
self as *mut str as *mut u8