@@ -1807,7 +1807,7 @@ impl<T> RawIter<T> {
1807
1807
return ;
1808
1808
}
1809
1809
1810
- if self . iter . inner . next_ctrl < self . iter . inner . end
1810
+ if self . iter . next_ctrl < self . iter . end
1811
1811
&& b. as_ptr ( ) <= self . iter . data . next_n ( Group :: WIDTH ) . as_ptr ( )
1812
1812
{
1813
1813
// The iterator has not yet reached the bucket's group.
@@ -1818,7 +1818,7 @@ impl<T> RawIter<T> {
1818
1818
// To do that, we need to find its control byte. We know that self.iter.data is
1819
1819
// at self.iter.next_ctrl - Group::WIDTH, so we work from there:
1820
1820
let offset = offset_from ( self . iter . data . as_ptr ( ) , b. as_ptr ( ) ) ;
1821
- let ctrl = self . iter . inner . next_ctrl . sub ( Group :: WIDTH ) . add ( offset) ;
1821
+ let ctrl = self . iter . next_ctrl . sub ( Group :: WIDTH ) . add ( offset) ;
1822
1822
// This method should be called _before_ a removal, or _after_ an insert,
1823
1823
// so in both cases the ctrl byte should indicate that the bucket is full.
1824
1824
assert ! ( is_full( * ctrl) ) ;
@@ -1841,7 +1841,7 @@ impl<T> RawIter<T> {
1841
1841
// - Otherwise, update the iterator cached group so that it won't
1842
1842
// yield a to-be-removed bucket, or _will_ yield a to-be-added bucket.
1843
1843
// We'll also need ot update the item count accordingly.
1844
- if let Some ( index) = self . iter . inner . current_group . lowest_set_bit ( ) {
1844
+ if let Some ( index) = self . iter . current_group . lowest_set_bit ( ) {
1845
1845
let next_bucket = self . iter . data . next_n ( index) ;
1846
1846
if b. as_ptr ( ) > next_bucket. as_ptr ( ) {
1847
1847
// The toggled bucket is "before" the bucket the iterator would yield next. We
@@ -1862,7 +1862,7 @@ impl<T> RawIter<T> {
1862
1862
// Instead, we _just_ flip the bit for the particular bucket the caller asked
1863
1863
// us to reflect.
1864
1864
let our_bit = offset_from ( self . iter . data . as_ptr ( ) , b. as_ptr ( ) ) ;
1865
- let was_full = self . iter . inner . current_group . flip ( our_bit) ;
1865
+ let was_full = self . iter . current_group . flip ( our_bit) ;
1866
1866
debug_assert_ne ! ( was_full, is_insert) ;
1867
1867
1868
1868
if is_insert {
@@ -1874,16 +1874,10 @@ impl<T> RawIter<T> {
1874
1874
if cfg ! ( debug_assertions) {
1875
1875
if b. as_ptr ( ) == next_bucket. as_ptr ( ) {
1876
1876
// The removed bucket should no longer be next
1877
- debug_assert_ne ! (
1878
- self . iter. inner. current_group. lowest_set_bit( ) ,
1879
- Some ( index)
1880
- ) ;
1877
+ debug_assert_ne ! ( self . iter. current_group. lowest_set_bit( ) , Some ( index) ) ;
1881
1878
} else {
1882
1879
// We should not have changed what bucket comes next.
1883
- debug_assert_eq ! (
1884
- self . iter. inner. current_group. lowest_set_bit( ) ,
1885
- Some ( index)
1886
- ) ;
1880
+ debug_assert_eq ! ( self . iter. current_group. lowest_set_bit( ) , Some ( index) ) ;
1887
1881
}
1888
1882
}
1889
1883
}
0 commit comments