Skip to content

Commit f3c7a00

Browse files
committed
Analysis takes &self instead of &mut self now
1 parent 6ed6eb4 commit f3c7a00

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/preempt_count/dataflow.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,15 @@ impl<'tcx> Analysis<'tcx> for AdjustmentComputation<'_, 'tcx, '_> {
109109
}
110110

111111
fn apply_primary_statement_effect(
112-
&mut self,
112+
&self,
113113
_state: &mut Self::Domain,
114114
_statement: &rustc_middle::mir::Statement<'tcx>,
115115
_location: rustc_middle::mir::Location,
116116
) {
117117
}
118118

119119
fn apply_primary_terminator_effect<'mir>(
120-
&mut self,
120+
&self,
121121
state: &mut Self::Domain,
122122
terminator: &'mir rustc_middle::mir::Terminator<'tcx>,
123123
location: rustc_middle::mir::Location,
@@ -213,7 +213,7 @@ impl<'tcx> Analysis<'tcx> for AdjustmentComputation<'_, 'tcx, '_> {
213213
}
214214

215215
fn apply_call_return_effect(
216-
&mut self,
216+
&self,
217217
_state: &mut Self::Domain,
218218
_block: BasicBlock,
219219
_return_places: rustc_middle::mir::CallReturnPlaces<'_, 'tcx>,

0 commit comments

Comments
 (0)