@@ -25,7 +25,7 @@ use super::fmt::DebugWithContext;
2525use super :: graphviz;
2626use super :: {
2727 visit_results, Analysis , AnalysisDomain , Direction , GenKill , GenKillAnalysis , GenKillSet ,
28- JoinSemiLattice , ResultsClonedCursor , ResultsCursor , ResultsVisitor ,
28+ JoinSemiLattice , ResultsCursor , ResultsVisitor ,
2929} ;
3030
3131pub type EntrySets < ' tcx , A > = IndexVec < BasicBlock , <A as AnalysisDomain < ' tcx > >:: Domain > ;
4141 pub ( super ) _marker : PhantomData < & ' tcx ( ) > ,
4242}
4343
44- /// `Results` type with a cloned `Analysis` and borrowed entry sets.
45- pub type ResultsCloned < ' res , ' tcx , A > = Results < ' tcx , A , & ' res EntrySets < ' tcx , A > > ;
46-
4744impl < ' tcx , A , E > Results < ' tcx , A , E >
4845where
4946 A : Analysis < ' tcx > ,
8178 }
8279}
8380
84- impl < ' tcx , A > Results < ' tcx , A >
85- where
86- A : Analysis < ' tcx > + Copy ,
87- {
88- /// Creates a `ResultsCursor` that can inspect these `Results`.
89- pub fn cloned_results_cursor < ' mir > (
90- & self ,
91- body : & ' mir mir:: Body < ' tcx > ,
92- ) -> ResultsClonedCursor < ' _ , ' mir , ' tcx , A > {
93- Results { analysis : self . analysis , entry_sets : & self . entry_sets , _marker : PhantomData }
94- . into_results_cursor ( body)
95- }
96- }
97-
9881/// A solver for dataflow problems.
9982pub struct Engine < ' mir , ' tcx , A >
10083where
0 commit comments