Remove some unused code relating to ResultsCloned
.
This commit is contained in:
parent
b85cba87e4
commit
389e2cc69a
4 changed files with 2 additions and 39 deletions
|
@ -1,6 +1,6 @@
|
|||
//! Random access inspection of the results of a dataflow analysis.
|
||||
|
||||
use crate::{framework::BitSetExt, CloneAnalysis};
|
||||
use crate::framework::BitSetExt;
|
||||
|
||||
use std::borrow::{Borrow, BorrowMut};
|
||||
use std::cmp::Ordering;
|
||||
|
@ -104,17 +104,6 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
impl<'res, 'mir, 'tcx, A> ResultsClonedCursor<'res, 'mir, 'tcx, A>
|
||||
where
|
||||
A: Analysis<'tcx> + CloneAnalysis,
|
||||
{
|
||||
/// Creates a new cursor over the same `Results`. Note that the cursor's position is *not*
|
||||
/// copied.
|
||||
pub fn new_cursor(&self) -> Self {
|
||||
Self::new(self.body, self.results.reclone_analysis())
|
||||
}
|
||||
}
|
||||
|
||||
impl<'mir, 'tcx, A, R> ResultsCursor<'mir, 'tcx, A, R>
|
||||
where
|
||||
A: Analysis<'tcx>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue