@@ -25,7 +25,7 @@ use super::fmt::DebugWithContext;
25
25
use super :: graphviz;
26
26
use super :: {
27
27
visit_results, Analysis , AnalysisDomain , Direction , GenKill , GenKillAnalysis , GenKillSet ,
28
- JoinSemiLattice , ResultsClonedCursor , ResultsCursor , ResultsVisitor ,
28
+ JoinSemiLattice , ResultsCursor , ResultsVisitor ,
29
29
} ;
30
30
31
31
pub type EntrySets < ' tcx , A > = IndexVec < BasicBlock , <A as AnalysisDomain < ' tcx > >:: Domain > ;
41
41
pub ( super ) _marker : PhantomData < & ' tcx ( ) > ,
42
42
}
43
43
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
-
47
44
impl < ' tcx , A , E > Results < ' tcx , A , E >
48
45
where
49
46
A : Analysis < ' tcx > ,
81
78
}
82
79
}
83
80
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
-
98
81
/// A solver for dataflow problems.
99
82
pub struct Engine < ' mir , ' tcx , A >
100
83
where
0 commit comments