diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-03 17:37:55 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-24 11:34:06 +1000 |
| commit | 4ff55588d33366d0572c1865b43dec8ac00237b1 (patch) | |
| tree | e92a8376063ed831b7818626973ae57de3dc3363 /compiler/rustc_mir_dataflow/src/points.rs | |
| parent | fa58ce343ad498196d799a7381869e79938e952a (diff) | |
| download | rust-4ff55588d33366d0572c1865b43dec8ac00237b1.tar.gz rust-4ff55588d33366d0572c1865b43dec8ac00237b1.zip | |
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.
Diffstat (limited to 'compiler/rustc_mir_dataflow/src/points.rs')
| -rw-r--r-- | compiler/rustc_mir_dataflow/src/points.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_mir_dataflow/src/points.rs b/compiler/rustc_mir_dataflow/src/points.rs index 21590ff1bba..806853ae1e4 100644 --- a/compiler/rustc_mir_dataflow/src/points.rs +++ b/compiler/rustc_mir_dataflow/src/points.rs @@ -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, |
