Skip to content

Commit

Permalink
Rollup merge of rust-lang#60356 - JohnTitor:stabilize-as-mut-ptr, r=C…
Browse files Browse the repository at this point in the history
…entril

Stabilize str::as_mut_ptr

Closes rust-lang#58215
  • Loading branch information
Centril authored Apr 28, 2019
2 parents 561f9fc + 4c0f01c commit 6c22d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/str/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6c22d4f

Please sign in to comment.