File tree Expand file tree Collapse file tree 3 files changed +334
-449
lines changed Expand file tree Collapse file tree 3 files changed +334
-449
lines changed Original file line number Diff line number Diff line change @@ -639,3 +639,20 @@ impl<T> IntoBounds<T> for RangeToInclusive<T> {
639639        ( Unbounded ,  Included ( self . last ) ) 
640640    } 
641641} 
642+ 
643+ #[ unstable( feature = "new_range_api" ,  issue = "125687" ) ]  
644+ #[ rustc_const_unstable( feature = "const_index" ,  issue = "143775" ) ]  
645+ impl < T >  const  From < RangeToInclusive < T > >  for  legacy:: RangeToInclusive < T >  { 
646+     #[ inline]  
647+     fn  from ( value :  RangeToInclusive < T > )  -> Self  { 
648+         Self  {  end :  value. last  } 
649+     } 
650+ } 
651+ #[ unstable( feature = "new_range_api" ,  issue = "125687" ) ]  
652+ #[ rustc_const_unstable( feature = "const_index" ,  issue = "143775" ) ]  
653+ impl < T >  const  From < legacy:: RangeToInclusive < T > >  for  RangeToInclusive < T >  { 
654+     #[ inline]  
655+     fn  from ( value :  legacy:: RangeToInclusive < T > )  -> Self  { 
656+         Self  {  last :  value. end  } 
657+     } 
658+ } 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments