File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed 
compiler/rustc_const_eval/src/interpret Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -736,20 +736,16 @@ where
736736        dest :  & MPlaceTy < ' tcx ,  M :: PointerTag > , 
737737    )  -> InterpResult < ' tcx >  { 
738738        // Note that it is really important that the type here is the right one, and matches the 
739-         // type things are read at. In case `src_val ` is a `ScalarPair`, we don't do any magic here 
739+         // type things are read at. In case `value ` is a `ScalarPair`, we don't do any magic here 
740740        // to handle padding properly, which is only correct if we never look at this data with the 
741741        // wrong type. 
742742
743-         // Invalid places are a thing: the return place of a diverging function 
744743        let  tcx = * self . tcx ; 
745744        let  Some ( mut  alloc)  = self . get_place_alloc_mut ( dest) ? else  { 
746745            // zero-sized access 
747746            return  Ok ( ( ) ) ; 
748747        } ; 
749748
750-         // FIXME: We should check that there are dest.layout.size many bytes available in 
751-         // memory.  The code below is not sufficient, with enough padding it might not 
752-         // cover all the bytes! 
753749        match  value { 
754750            Immediate :: Scalar ( scalar)  => { 
755751                let  Abi :: Scalar ( s)  = dest. layout . abi  else  {  span_bug ! ( 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments