未验证 提交 c9b70144 编写于 作者: M Mazdak Farrokhzad 提交者: GitHub

Rollup merge of #60356 - JohnTitor:stabilize-as-mut-ptr, r=Centril

Stabilize str::as_mut_ptr

Closes #58215
......@@ -2214,7 +2214,7 @@ pub const fn as_ptr(&self) -> *const u8 {
/// 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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册