about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-11-22 08:53:45 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-11-23 14:06:46 +1100
commitca741945f401d05d9fa2b7a535e1be7da03a5887 (patch)
treee8ae68632857c4f52ac9950db540e3b17a6bc094
parente7781c75f8e3281906a1eac7b7e033c0e25b36d5 (diff)
downloadrust-ca741945f401d05d9fa2b7a535e1be7da03a5887.tar.gz
rust-ca741945f401d05d9fa2b7a535e1be7da03a5887.zip
Remove `indexes` module.
It's not useful, and only obfuscates things.
-rw-r--r--compiler/rustc_mir_dataflow/src/drop_flag_effects.rs3
-rw-r--r--compiler/rustc_mir_dataflow/src/lib.rs4
2 files changed, 1 insertions, 6 deletions
diff --git a/compiler/rustc_mir_dataflow/src/drop_flag_effects.rs b/compiler/rustc_mir_dataflow/src/drop_flag_effects.rs
index 163d74cc9cf..81c1a50a5dd 100644
--- a/compiler/rustc_mir_dataflow/src/drop_flag_effects.rs
+++ b/compiler/rustc_mir_dataflow/src/drop_flag_effects.rs
@@ -3,8 +3,7 @@ use rustc_middle::mir::{self, Body, Location, Terminator, TerminatorKind};
 use rustc_middle::ty::TyCtxt;
 use rustc_target::abi::VariantIdx;
 
-use super::indexes::MovePathIndex;
-use super::move_paths::{InitKind, LookupResult, MoveData};
+use super::move_paths::{InitKind, LookupResult, MoveData, MovePathIndex};
 use super::MoveDataParamEnv;
 
 pub fn move_path_children_matching<'tcx, F>(
diff --git a/compiler/rustc_mir_dataflow/src/lib.rs b/compiler/rustc_mir_dataflow/src/lib.rs
index b38a3a2b4b2..cb871ca8d5d 100644
--- a/compiler/rustc_mir_dataflow/src/lib.rs
+++ b/compiler/rustc_mir_dataflow/src/lib.rs
@@ -44,10 +44,6 @@ pub mod value_analysis;
 
 fluent_messages! { "../messages.ftl" }
 
-pub(crate) mod indexes {
-    pub(crate) use super::move_paths::MovePathIndex;
-}
-
 pub struct MoveDataParamEnv<'tcx> {
     pub move_data: MoveData<'tcx>,
     pub param_env: ty::ParamEnv<'tcx>,