diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-10-10 11:21:16 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-10-14 16:35:28 +1100 |
| commit | 874b03ec28beba617951efef505fe3e320900454 (patch) | |
| tree | a2a1cfca2571937411253d923583fc6bdff6ed97 /compiler/rustc_mir_dataflow/src/framework | |
| parent | 5ceb623a4abd66e91e7959d25caaf0523f1a7f7c (diff) | |
| download | rust-874b03ec28beba617951efef505fe3e320900454.tar.gz rust-874b03ec28beba617951efef505fe3e320900454.zip | |
Remove `ResultsCursor::contains`.
It's hardly worth it, and it needs to be removed so that `GenKillAnalysis` can be removed.
Diffstat (limited to 'compiler/rustc_mir_dataflow/src/framework')
| -rw-r--r-- | compiler/rustc_mir_dataflow/src/framework/cursor.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/compiler/rustc_mir_dataflow/src/framework/cursor.rs b/compiler/rustc_mir_dataflow/src/framework/cursor.rs index 7cfaef22689..5ebb343f4e1 100644 --- a/compiler/rustc_mir_dataflow/src/framework/cursor.rs +++ b/compiler/rustc_mir_dataflow/src/framework/cursor.rs @@ -7,7 +7,6 @@ use rustc_index::bit_set::BitSet; use rustc_middle::mir::{self, BasicBlock, Location}; use super::{Analysis, Direction, Effect, EffectIndex, Results}; -use crate::framework::BitSetExt; /// Allows random access inspection of the results of a dataflow analysis. /// @@ -221,16 +220,6 @@ where } } -impl<'mir, 'tcx, A> ResultsCursor<'mir, 'tcx, A> -where - A: crate::GenKillAnalysis<'tcx>, - A::Domain: BitSetExt<A::Idx>, -{ - pub fn contains(&self, elem: A::Idx) -> bool { - self.get().contains(elem) - } -} - #[derive(Clone, Copy, Debug)] struct CursorPosition { block: BasicBlock, |
