@@ -198,8 +198,6 @@ impl str {
198198/// Basic usage: 
199199/// 
200200/// ``` 
201- /// #![feature(inherent_str_constructors)] 
202- /// 
203201/// // some bytes, in a vector 
204202/// let sparkle_heart = vec![240, 159, 146, 150]; 
205203/// 
@@ -213,8 +211,6 @@ impl str {
213211/// Incorrect bytes: 
214212/// 
215213/// ``` 
216- /// #![feature(inherent_str_constructors)] 
217- /// 
218214/// // some invalid bytes, in a vector 
219215/// let sparkle_heart = vec![0, 159, 146, 150]; 
220216/// 
@@ -227,8 +223,6 @@ impl str {
227223/// A "stack allocated string": 
228224/// 
229225/// ``` 
230- /// #![feature(inherent_str_constructors)] 
231- /// 
232226/// // some bytes, in a stack-allocated array 
233227/// let sparkle_heart = [240, 159, 146, 150]; 
234228/// 
@@ -237,7 +231,8 @@ impl str {
237231/// 
238232/// assert_eq!("💖", sparkle_heart); 
239233/// ``` 
240- #[ unstable( feature = "inherent_str_constructors" ,  issue = "131114" ) ]  
234+ #[ stable( feature = "inherent_str_constructors" ,  since = "CURRENT_RUSTC_VERSION" ) ]  
235+     #[ rustc_const_stable( feature = "inherent_str_constructors" ,  since = "CURRENT_RUSTC_VERSION" ) ]  
241236    #[ rustc_diagnostic_item = "str_inherent_from_utf8" ]  
242237    pub  const  fn  from_utf8 ( v :  & [ u8 ] )  -> Result < & str ,  Utf8Error >  { 
243238        converts:: from_utf8 ( v) 
@@ -250,8 +245,6 @@ impl str {
250245/// Basic usage: 
251246/// 
252247/// ``` 
253- /// #![feature(inherent_str_constructors)] 
254- /// 
255248/// // "Hello, Rust!" as a mutable vector 
256249/// let mut hellorust = vec![72, 101, 108, 108, 111, 44, 32, 82, 117, 115, 116, 33]; 
257250/// 
@@ -264,16 +257,14 @@ impl str {
264257/// Incorrect bytes: 
265258/// 
266259/// ``` 
267- /// #![feature(inherent_str_constructors)] 
268- /// 
269260/// // Some invalid bytes in a mutable vector 
270261/// let mut invalid = vec![128, 223]; 
271262/// 
272263/// assert!(str::from_utf8_mut(&mut invalid).is_err()); 
273264/// ``` 
274265/// See the docs for [`Utf8Error`] for more details on the kinds of 
275266/// errors that can be returned. 
276- #[ unstable ( feature = "inherent_str_constructors" ,  issue  = "131114 " ) ]  
267+ #[ stable ( feature = "inherent_str_constructors" ,  since  = "CURRENT_RUSTC_VERSION " ) ]  
277268    #[ rustc_const_unstable( feature = "const_str_from_utf8" ,  issue = "91006" ) ]  
278269    #[ rustc_diagnostic_item = "str_inherent_from_utf8_mut" ]  
279270    pub  const  fn  from_utf8_mut ( v :  & mut  [ u8 ] )  -> Result < & mut  str ,  Utf8Error >  { 
@@ -294,8 +285,6 @@ impl str {
294285/// Basic usage: 
295286/// 
296287/// ``` 
297- /// #![feature(inherent_str_constructors)] 
298- /// 
299288/// // some bytes, in a vector 
300289/// let sparkle_heart = vec![240, 159, 146, 150]; 
301290/// 
@@ -307,7 +296,8 @@ impl str {
307296/// ``` 
308297#[ inline]  
309298    #[ must_use]  
310-     #[ unstable( feature = "inherent_str_constructors" ,  issue = "131114" ) ]  
299+     #[ stable( feature = "inherent_str_constructors" ,  since = "CURRENT_RUSTC_VERSION" ) ]  
300+     #[ rustc_const_stable( feature = "inherent_str_constructors" ,  since = "CURRENT_RUSTC_VERSION" ) ]  
311301    #[ rustc_diagnostic_item = "str_inherent_from_utf8_unchecked" ]  
312302    pub  const  unsafe  fn  from_utf8_unchecked ( v :  & [ u8 ] )  -> & str  { 
313303        // SAFETY: converts::from_utf8_unchecked has the same safety requirements as this function. 
@@ -324,16 +314,15 @@ impl str {
324314/// Basic usage: 
325315/// 
326316/// ``` 
327- /// #![feature(inherent_str_constructors)] 
328- /// 
329317/// let mut heart = vec![240, 159, 146, 150]; 
330318/// let heart = unsafe { str::from_utf8_unchecked_mut(&mut heart) }; 
331319/// 
332320/// assert_eq!("💖", heart); 
333321/// ``` 
334322#[ inline]  
335323    #[ must_use]  
336-     #[ unstable( feature = "inherent_str_constructors" ,  issue = "131114" ) ]  
324+     #[ stable( feature = "inherent_str_constructors" ,  since = "CURRENT_RUSTC_VERSION" ) ]  
325+     #[ rustc_const_stable( feature = "inherent_str_constructors" ,  since = "CURRENT_RUSTC_VERSION" ) ]  
337326    #[ rustc_diagnostic_item = "str_inherent_from_utf8_unchecked_mut" ]  
338327    pub  const  unsafe  fn  from_utf8_unchecked_mut ( v :  & mut  [ u8 ] )  -> & mut  str  { 
339328        // SAFETY: converts::from_utf8_unchecked_mut has the same safety requirements as this function. 
0 commit comments