File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 152152#![ feature( const_slice_from_ref) ]  
153153#![ feature( const_slice_split_at_mut) ]  
154154#![ feature( const_str_as_mut) ]  
155- #![ feature( const_str_from_utf8_unchecked_mut) ]  
156155#![ feature( const_strict_overflow_ops) ]  
157156#![ feature( const_swap) ]  
158157#![ feature( const_try) ]  
Original file line number Diff line number Diff line change @@ -195,7 +195,10 @@ pub const unsafe fn from_utf8_unchecked(v: &[u8]) -> &str {
195195#[ inline]  
196196#[ must_use]  
197197#[ stable( feature = "str_mut_extras" ,  since = "1.20.0" ) ]  
198- #[ rustc_const_unstable( feature = "const_str_from_utf8_unchecked_mut" ,  issue = "91005" ) ]  
198+ #[ rustc_const_stable(  
199+     feature = "const_str_from_utf8_unchecked_mut" ,  
200+     since = "CURRENT_RUSTC_VERSION"  
201+ ) ] 
199202#[ rustc_diagnostic_item = "str_from_utf8_unchecked_mut" ]  
200203pub  const  unsafe  fn  from_utf8_unchecked_mut ( v :  & mut  [ u8 ] )  -> & mut  str  { 
201204    // SAFETY: the caller must guarantee that the bytes `v` 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments