Remove ResultsRefCursor
.
It's no longer used.
This commit is contained in:
parent
cf82b410f9
commit
5f5263bfc8
3 changed files with 2 additions and 29 deletions
|
@ -25,7 +25,7 @@ use super::fmt::DebugWithContext;
|
|||
use super::graphviz;
|
||||
use super::{
|
||||
visit_results, Analysis, AnalysisDomain, Direction, GenKill, GenKillAnalysis, GenKillSet,
|
||||
JoinSemiLattice, ResultsClonedCursor, ResultsCursor, ResultsRefCursor, ResultsVisitor,
|
||||
JoinSemiLattice, ResultsClonedCursor, ResultsCursor, ResultsVisitor,
|
||||
};
|
||||
|
||||
pub type EntrySets<'tcx, A> = IndexVec<BasicBlock, <A as AnalysisDomain<'tcx>>::Domain>;
|
||||
|
@ -80,19 +80,6 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
impl<'tcx, A> Results<'tcx, A>
|
||||
where
|
||||
A: Analysis<'tcx>,
|
||||
{
|
||||
/// Creates a `ResultsCursor` that can inspect these `Results`.
|
||||
pub fn as_results_cursor<'a, 'mir>(
|
||||
&'a mut self,
|
||||
body: &'mir mir::Body<'tcx>,
|
||||
) -> ResultsRefCursor<'a, 'mir, 'tcx, A> {
|
||||
ResultsCursor::new(body, self)
|
||||
}
|
||||
}
|
||||
|
||||
impl<'tcx, A> Results<'tcx, A>
|
||||
where
|
||||
A: Analysis<'tcx> + Copy,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue