File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -915,15 +915,13 @@ macro_rules! nonzero_unsigned_is_power_of_two {
915915                 /// Basic usage: 
916916                 /// 
917917                 /// ``` 
918-                  /// #![feature(nonzero_is_power_of_two)] 
919-                  /// 
920918                 #[ doc = concat!( "let eight = std::num::" ,  stringify!( $Ty) ,  "::new(8).unwrap();" ) ] 
921919                /// assert!(eight.is_power_of_two()); 
922920                 #[ doc = concat!( "let ten = std::num::" ,  stringify!( $Ty) ,  "::new(10).unwrap();" ) ] 
923921                /// assert!(!ten.is_power_of_two()); 
924922                 /// ``` 
925923                 #[ must_use] 
926-                 #[ unstable ( feature = "nonzero_is_power_of_two" ,  issue  = "81106 " ) ] 
924+                 #[ stable ( feature = "nonzero_is_power_of_two" ,  since  = "1.59.0 " ) ] 
927925                #[ inline] 
928926                pub  const  fn  is_power_of_two( self )  -> bool  { 
929927                    // LLVM 11 normalizes `unchecked_sub(x, 1) & x == 0` to the implementation seen here. 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments