File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed 
rustc_data_structures/src Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,14 @@ pub trait FingerprintComponent {
1414} 
1515
1616impl  FingerprintComponent  for  Hash64  { 
17+     #[ inline]  
1718    fn  as_u64 ( & self )  -> u64  { 
1819        Hash64 :: as_u64 ( * self ) 
1920    } 
2021} 
2122
2223impl  FingerprintComponent  for  u64  { 
24+     #[ inline]  
2325    fn  as_u64 ( & self )  -> u64  { 
2426        * self 
2527    } 
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ impl Hash64 {
3636} 
3737
3838impl  BitXorAssign < u64 >  for  Hash64  { 
39+     #[ inline]  
3940    fn  bitxor_assign ( & mut  self ,  rhs :  u64 )  { 
4041        self . inner  ^= rhs; 
4142    } 
Original file line number Diff line number Diff line change @@ -186,6 +186,7 @@ impl StableCrateId {
186186        StableCrateId ( hasher. finish ( ) ) 
187187    } 
188188
189+     #[ inline]  
189190    pub  fn  as_u64 ( self )  -> u64  { 
190191        self . 0 . as_u64 ( ) 
191192    } 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments