From 16707d43483ef8b776b941f056dc1ea78ebd7c77 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 20 Jul 2017 15:52:12 -0700 Subject: std: Stabilize the `str_{mut,box}_extras` feature Stabilizes * `<&mut str>::as_bytes_mut` * `>::into_boxed_bytes` * `std::str::from_boxed_utf8_unchecked` * `std::str::from_utf8_mut` * `std::str::from_utf8_unchecked_mut` Closes #41119 --- src/libstd/ffi/c_str.rs | 6 ------ src/libstd/ffi/os_str.rs | 2 -- src/libstd/lib.rs | 1 - 3 files changed, 9 deletions(-) (limited to 'src/libstd') diff --git a/src/libstd/ffi/c_str.rs b/src/libstd/ffi/c_str.rs index 5dd7bb1c0c1..db64d41011c 100644 --- a/src/libstd/ffi/c_str.rs +++ b/src/libstd/ffi/c_str.rs @@ -453,8 +453,6 @@ impl CString { /// # Examples /// /// ``` - /// #![feature(as_c_str)] - /// /// use std::ffi::{CString, CStr}; /// /// let c_string = CString::new(b"foo".to_vec()).unwrap(); @@ -474,8 +472,6 @@ impl CString { /// # Examples /// /// ``` - /// #![feature(into_boxed_c_str)] - /// /// use std::ffi::{CString, CStr}; /// /// let c_string = CString::new(b"foo".to_vec()).unwrap(); @@ -1001,8 +997,6 @@ impl CStr { /// # Examples /// /// ``` - /// #![feature(into_boxed_c_str)] - /// /// use std::ffi::CString; /// /// let c_string = CString::new(b"foo".to_vec()).unwrap(); diff --git a/src/libstd/ffi/os_str.rs b/src/libstd/ffi/os_str.rs index 6f147ea0eec..d62e3e905e3 100644 --- a/src/libstd/ffi/os_str.rs +++ b/src/libstd/ffi/os_str.rs @@ -252,8 +252,6 @@ impl OsString { /// # Examples /// /// ``` - /// #![feature(into_boxed_os_str)] - /// /// use std::ffi::{OsString, OsStr}; /// /// let s = OsString::from("hello"); diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index 8fe0ecfcf53..82262f1551a 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -303,7 +303,6 @@ #![feature(stmt_expr_attributes)] #![feature(str_char)] #![feature(str_internals)] -#![feature(str_mut_extras)] #![feature(str_utf16)] #![feature(test, rustc_private)] #![feature(thread_local)] -- cgit 1.4.1-3-g733a5