about summary refs log tree commit diff
path: root/compiler/rustc_mir_dataflow/src/rustc_peek.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-11-24 06:26:15 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-11-24 06:36:27 +1100
commit0f12da17c0b04a16963ea749186d9db2e50027b8 (patch)
treee145accf0fa69f8d788a13ee7fc17b1942f17de0 /compiler/rustc_mir_dataflow/src/rustc_peek.rs
parent118308ee0385e98f0ad3709061281d139835b606 (diff)
downloadrust-0f12da17c0b04a16963ea749186d9db2e50027b8.tar.gz
rust-0f12da17c0b04a16963ea749186d9db2e50027b8.zip
Remove unused arguments from `on_all_children_bits`.
`on_all_children_bits` has two arguments that are unused: `tcx` and
`body`. This was not detected by the compiler because it's a recursive
function.

This commit removes them, and removes lots of other arguments and fields
that are no longer necessary.
Diffstat (limited to 'compiler/rustc_mir_dataflow/src/rustc_peek.rs')
-rw-r--r--compiler/rustc_mir_dataflow/src/rustc_peek.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_dataflow/src/rustc_peek.rs b/compiler/rustc_mir_dataflow/src/rustc_peek.rs
index 21fa676ebde..b592b2f5d41 100644
--- a/compiler/rustc_mir_dataflow/src/rustc_peek.rs
+++ b/compiler/rustc_mir_dataflow/src/rustc_peek.rs
@@ -66,7 +66,7 @@ impl<'tcx> MirPass<'tcx> for SanityCheck {
         }
 
         if has_rustc_mir_with(tcx, def_id, sym::rustc_peek_definite_init).is_some() {
-            let flow_def_inits = DefinitelyInitializedPlaces::new(tcx, body, &mdpe)
+            let flow_def_inits = DefinitelyInitializedPlaces::new(body, &mdpe)
                 .into_engine(tcx, body)
                 .iterate_to_fixpoint();