11use rustc_middle:: mir:: {
2- self , BasicBlock , CallReturnPlaces , Location , SwitchTargets , TerminatorEdge , UnwindAction ,
2+ self , BasicBlock , CallReturnPlaces , Location , SwitchTargets , TerminatorEdges , UnwindAction ,
33} ;
44use std:: ops:: RangeInclusive ;
55
@@ -29,7 +29,7 @@ pub trait Direction {
2929 block : BasicBlock ,
3030 block_data : & ' mir mir:: BasicBlockData < ' tcx > ,
3131 statement_effect : Option < & dyn Fn ( BasicBlock , & mut A :: Domain ) > ,
32- ) -> TerminatorEdge < ' mir , ' tcx >
32+ ) -> TerminatorEdges < ' mir , ' tcx >
3333 where
3434 A : Analysis < ' tcx > ;
3535
@@ -55,7 +55,7 @@ pub trait Direction {
5555 body : & mir:: Body < ' tcx > ,
5656 exit_state : & mut A :: Domain ,
5757 block : BasicBlock ,
58- edges : TerminatorEdge < ' _ , ' tcx > ,
58+ edges : TerminatorEdges < ' _ , ' tcx > ,
5959 propagate : impl FnMut ( BasicBlock , & A :: Domain ) ,
6060 ) where
6161 A : Analysis < ' tcx > ;
@@ -73,7 +73,7 @@ impl Direction for Backward {
7373 block : BasicBlock ,
7474 block_data : & ' mir mir:: BasicBlockData < ' tcx > ,
7575 statement_effect : Option < & dyn Fn ( BasicBlock , & mut A :: Domain ) > ,
76- ) -> TerminatorEdge < ' mir , ' tcx >
76+ ) -> TerminatorEdges < ' mir , ' tcx >
7777 where
7878 A : Analysis < ' tcx > ,
7979 {
@@ -222,7 +222,7 @@ impl Direction for Backward {
222222 body : & mir:: Body < ' tcx > ,
223223 exit_state : & mut A :: Domain ,
224224 bb : BasicBlock ,
225- _edges : TerminatorEdge < ' _ , ' tcx > ,
225+ _edges : TerminatorEdges < ' _ , ' tcx > ,
226226 mut propagate : impl FnMut ( BasicBlock , & A :: Domain ) ,
227227 ) where
228228 A : Analysis < ' tcx > ,
@@ -330,7 +330,7 @@ impl Direction for Forward {
330330 block : BasicBlock ,
331331 block_data : & ' mir mir:: BasicBlockData < ' tcx > ,
332332 statement_effect : Option < & dyn Fn ( BasicBlock , & mut A :: Domain ) > ,
333- ) -> TerminatorEdge < ' mir , ' tcx >
333+ ) -> TerminatorEdges < ' mir , ' tcx >
334334 where
335335 A : Analysis < ' tcx > ,
336336 {
@@ -474,19 +474,19 @@ impl Direction for Forward {
474474 _body : & mir:: Body < ' tcx > ,
475475 exit_state : & mut A :: Domain ,
476476 bb : BasicBlock ,
477- edges : TerminatorEdge < ' _ , ' tcx > ,
477+ edges : TerminatorEdges < ' _ , ' tcx > ,
478478 mut propagate : impl FnMut ( BasicBlock , & A :: Domain ) ,
479479 ) where
480480 A : Analysis < ' tcx > ,
481481 {
482482 match edges {
483- TerminatorEdge :: None => { }
484- TerminatorEdge :: Single ( target) => propagate ( target, exit_state) ,
485- TerminatorEdge :: Double ( target, unwind) => {
483+ TerminatorEdges :: None => { }
484+ TerminatorEdges :: Single ( target) => propagate ( target, exit_state) ,
485+ TerminatorEdges :: Double ( target, unwind) => {
486486 propagate ( target, exit_state) ;
487487 propagate ( unwind, exit_state) ;
488488 }
489- TerminatorEdge :: AssignOnReturn { return_, unwind, place } => {
489+ TerminatorEdges :: AssignOnReturn { return_, unwind, place } => {
490490 // This must be done *first*, otherwise the unwind path will see the assignments.
491491 if let UnwindAction :: Cleanup ( unwind) = unwind {
492492 propagate ( unwind, exit_state) ;
@@ -496,7 +496,7 @@ impl Direction for Forward {
496496 propagate ( return_, exit_state) ;
497497 }
498498 }
499- TerminatorEdge :: SwitchInt { targets, discr } => {
499+ TerminatorEdges :: SwitchInt { targets, discr } => {
500500 let mut applier = ForwardSwitchIntEdgeEffectsApplier {
501501 exit_state,
502502 targets,
0 commit comments