- #[unstable(feature = "cstr_memory", reason = "recently added",
- issue = "27769")]
- pub fn into_raw(self) -> *const libc::c_char {
- // It is important that the bytes be sized to fit - we need
- // the capacity to be determinable from the string length, and
- // shrinking to fit is the only way to be sure.
- Box::into_raw(self.inner) as *const libc::c_char
+ #[stable(feature = "cstr_memory", since = "1.4.0")]
+ pub fn into_raw(self) -> *mut libc::c_char {
+ Box::into_raw(self.inner) as *mut libc::c_char