|
35 | 35 | use std::cmp::Ordering; |
36 | 36 |
|
37 | 37 | use rustc_data_structures::work_queue::WorkQueue; |
38 | | -use rustc_index::bit_set::{BitSet, ChunkedBitSet, HybridBitSet}; |
| 38 | +use rustc_index::bit_set::{BitSet, ChunkedBitSet}; |
39 | 39 | use rustc_index::{Idx, IndexVec}; |
40 | 40 | use rustc_middle::bug; |
41 | 41 | use rustc_middle::mir::{self, BasicBlock, CallReturnPlaces, Location, TerminatorEdges, traversal}; |
@@ -63,36 +63,18 @@ pub use self::visitor::{ResultsVisitor, visit_results}; |
63 | 63 | /// operations needed by all of them. |
64 | 64 | pub trait BitSetExt<T> { |
65 | 65 | fn contains(&self, elem: T) -> bool; |
66 | | - fn union(&mut self, other: &HybridBitSet<T>); |
67 | | - fn subtract(&mut self, other: &HybridBitSet<T>); |
68 | 66 | } |
69 | 67 |
|
70 | 68 | impl<T: Idx> BitSetExt<T> for BitSet<T> { |
71 | 69 | fn contains(&self, elem: T) -> bool { |
72 | 70 | self.contains(elem) |
73 | 71 | } |
74 | | - |
75 | | - fn union(&mut self, other: &HybridBitSet<T>) { |
76 | | - self.union(other); |
77 | | - } |
78 | | - |
79 | | - fn subtract(&mut self, other: &HybridBitSet<T>) { |
80 | | - self.subtract(other); |
81 | | - } |
82 | 72 | } |
83 | 73 |
|
84 | 74 | impl<T: Idx> BitSetExt<T> for ChunkedBitSet<T> { |
85 | 75 | fn contains(&self, elem: T) -> bool { |
86 | 76 | self.contains(elem) |
87 | 77 | } |
88 | | - |
89 | | - fn union(&mut self, other: &HybridBitSet<T>) { |
90 | | - self.union(other); |
91 | | - } |
92 | | - |
93 | | - fn subtract(&mut self, other: &HybridBitSet<T>) { |
94 | | - self.subtract(other); |
95 | | - } |
96 | 78 | } |
97 | 79 |
|
98 | 80 | /// A dataflow problem with an arbitrarily complex transfer function. |
|
0 commit comments