File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -282,10 +282,10 @@ impl<'a> ArgumentV1<'a> {
282282        // SAFETY: `mem::transmute(x)` is safe because 
283283        //     1. `&'b T` keeps the lifetime it originated with `'b` 
284284        //              (so as to not have an unbounded lifetime) 
285-         //     2. `&'b T` and `&'b Void ` have the same memory layout 
285+         //     2. `&'b T` and `&'b Opaque ` have the same memory layout 
286286        //              (when `T` is `Sized`, as it is here) 
287287        // `mem::transmute(f)` is safe since `fn(&T, &mut Formatter<'_>) -> Result` 
288-         // and `fn(&Void , &mut Formatter<'_>) -> Result` have the same ABI 
288+         // and `fn(&Opaque , &mut Formatter<'_>) -> Result` have the same ABI 
289289        // (as long as `T` is `Sized`) 
290290        unsafe  {  ArgumentV1  {  formatter :  mem:: transmute ( f) ,  value :  mem:: transmute ( x)  }  } 
291291    } 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments