Pass Analysis to visit_* instead of Results.

Every `Results` contains an `Analysis`, but these methods only need the
`Analysis`. No point passing them more data than they need.
This commit is contained in:
Nicholas Nethercote
2025-04-03 17:37:55 +11:00
parent fa58ce343a
commit 4ff55588d3
7 changed files with 50 additions and 56 deletions

View File

@@ -127,7 +127,7 @@ where
{
fn visit_after_primary_statement_effect<'mir>(
&mut self,
_results: &mut Results<'tcx, A>,
_analysis: &mut A,
state: &A::Domain,
_statement: &'mir mir::Statement<'tcx>,
location: Location,
@@ -141,7 +141,7 @@ where
fn visit_after_primary_terminator_effect<'mir>(
&mut self,
_results: &mut Results<'tcx, A>,
_analysis: &mut A,
state: &A::Domain,
_terminator: &'mir mir::Terminator<'tcx>,
location: Location,