File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1185,8 +1185,12 @@ macro_rules! nonzero_integer_signedness_dependent_impls {
11851185        impl  Div <NonZero <$Int>> for  $Int { 
11861186            type  Output  = $Int; 
11871187
1188+             /// Same as `self / other.get()`, but because `other` is a `NonZero<_>`, 
1189+              /// there's never a runtime check for division-by-zero. 
1190+              /// 
11881191             /// This operation rounds towards zero, truncating any fractional 
11891192             /// part of the exact result, and cannot panic. 
1193+              #[ doc( alias = "unchecked_div" ) ] 
11901194            #[ inline] 
11911195            fn  div( self ,  other:  NonZero <$Int>)  -> $Int { 
11921196                // SAFETY: Division by zero is checked because `other` is non-zero, 
@@ -1197,6 +1201,9 @@ macro_rules! nonzero_integer_signedness_dependent_impls {
11971201
11981202        #[ stable( feature = "nonzero_div_assign" ,  since = "1.79.0" ) ] 
11991203        impl  DivAssign <NonZero <$Int>> for  $Int { 
1204+             /// Same as `self /= other.get()`, but because `other` is a `NonZero<_>`, 
1205+              /// there's never a runtime check for division-by-zero. 
1206+              /// 
12001207             /// This operation rounds towards zero, truncating any fractional 
12011208             /// part of the exact result, and cannot panic. 
12021209             #[ inline] 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments