mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-24 13:43:04 +00:00
Remove ResultsCursor::get_with_analysis
.
We can just call `ResultsCursor::state` and `ResultsCursor::analysis` separately.
This commit is contained in:
parent
406c0b8ae4
commit
912eb1f7c1
@ -166,11 +166,6 @@ where
|
||||
&mut self.results.borrow_mut().analysis
|
||||
}
|
||||
|
||||
/// Returns both the dataflow state at the current location and the `Analysis`.
|
||||
pub fn get_with_analysis(&mut self) -> (&A::Domain, &mut A) {
|
||||
(&self.state, &mut self.results.borrow_mut().analysis)
|
||||
}
|
||||
|
||||
/// Resets the cursor to hold the entry set for the given basic block.
|
||||
///
|
||||
/// For forward dataflow analyses, this is the dataflow state prior to the first statement.
|
||||
|
@ -139,7 +139,8 @@ where
|
||||
) => {
|
||||
let loc = Location { block: bb, statement_index };
|
||||
cursor.seek_before_primary_effect(loc);
|
||||
let (state, analysis) = cursor.get_with_analysis();
|
||||
let state = cursor.get();
|
||||
let analysis = cursor.analysis();
|
||||
analysis.peek_at(tcx, *place, state, call);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user