diff options
| author | Jason Newcomb <jsnewcomb@pm.me> | 2023-02-20 17:28:03 -0500 |
|---|---|---|
| committer | Jason Newcomb <jsnewcomb@pm.me> | 2023-05-18 17:46:39 -0400 |
| commit | eaddc3707520988f8bc2d267cb192d2f0c63ee80 (patch) | |
| tree | 0ed197fa7a525c6543e08b8bae3fad983241dc47 /compiler/rustc_const_eval/src/transform | |
| parent | fdd030127cc68afec44a8d3f6341525dd34e50ae (diff) | |
| download | rust-eaddc3707520988f8bc2d267cb192d2f0c63ee80.tar.gz rust-eaddc3707520988f8bc2d267cb192d2f0c63ee80.zip | |
Take MIR dataflow analyses by mutable reference.
Diffstat (limited to 'compiler/rustc_const_eval/src/transform')
| -rw-r--r-- | compiler/rustc_const_eval/src/transform/check_consts/resolver.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_const_eval/src/transform/check_consts/resolver.rs b/compiler/rustc_const_eval/src/transform/check_consts/resolver.rs index 78c74e1892d..65fe164f8ec 100644 --- a/compiler/rustc_const_eval/src/transform/check_consts/resolver.rs +++ b/compiler/rustc_const_eval/src/transform/check_consts/resolver.rs @@ -337,7 +337,7 @@ where Q: Qualif, { fn apply_statement_effect( - &self, + &mut self, state: &mut Self::Domain, statement: &mir::Statement<'tcx>, location: Location, @@ -346,7 +346,7 @@ where } fn apply_terminator_effect( - &self, + &mut self, state: &mut Self::Domain, terminator: &mir::Terminator<'tcx>, location: Location, @@ -355,7 +355,7 @@ where } fn apply_call_return_effect( - &self, + &mut self, state: &mut Self::Domain, block: BasicBlock, return_places: CallReturnPlaces<'_, 'tcx>, |
