File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed 
rustc_mir/src/transform/coverage Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -461,7 +461,7 @@ impl<'tcx> Body<'tcx> {
461461    } 
462462
463463    #[ inline]  
464-     pub  fn  predecessors ( & self )  -> impl  std :: ops :: Deref < Target  =  Predecessors >  +  ' _  { 
464+     pub  fn  predecessors ( & self )  -> & Predecessors  { 
465465        self . predecessor_cache . compute ( & self . basic_blocks ) 
466466    } 
467467
@@ -2815,13 +2815,13 @@ impl<'a, 'b> graph::GraphSuccessors<'b> for Body<'a> {
28152815
28162816impl  graph:: GraphPredecessors < ' graph >  for  Body < ' tcx >  { 
28172817    type  Item  = BasicBlock ; 
2818-     type  Iter  = smallvec :: IntoIter < [ BasicBlock ;   4 ] > ; 
2818+     type  Iter  = std :: iter :: Copied < std :: slice :: Iter < ' graph ,   BasicBlock > > ; 
28192819} 
28202820
28212821impl  graph:: WithPredecessors  for  Body < ' tcx >  { 
28222822    #[ inline]  
28232823    fn  predecessors ( & self ,  node :  Self :: Node )  -> <Self  as  graph:: GraphPredecessors < ' _ > >:: Iter  { 
2824-         self . predecessors ( ) [ node] . clone ( ) . into_iter ( ) 
2824+         self . predecessors ( ) [ node] . iter ( ) . copied ( ) 
28252825    } 
28262826} 
28272827
Original file line number Diff line number Diff line change @@ -269,13 +269,13 @@ impl graph::WithSuccessors for CoverageGraph {
269269
270270impl  graph:: GraphPredecessors < ' graph >  for  CoverageGraph  { 
271271    type  Item  = BasicCoverageBlock ; 
272-     type  Iter  = std:: vec :: IntoIter < BasicCoverageBlock > ; 
272+     type  Iter  = std:: iter :: Copied < std :: slice :: Iter < ' graph ,   BasicCoverageBlock > > ; 
273273} 
274274
275275impl  graph:: WithPredecessors  for  CoverageGraph  { 
276276    #[ inline]  
277277    fn  predecessors ( & self ,  node :  Self :: Node )  -> <Self  as  graph:: GraphPredecessors < ' _ > >:: Iter  { 
278-         self . predecessors [ node] . clone ( ) . into_iter ( ) 
278+         self . predecessors [ node] . iter ( ) . copied ( ) 
279279    } 
280280} 
281281
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments