@@ -3922,7 +3922,7 @@ macro_rules! iterator {
39223922 }
39233923
39243924 #[ doc( hidden) ]
3925- unsafe fn get_unchecked ( & mut self , idx: usize ) -> Self :: Item {
3925+ unsafe fn __iterator_get_unchecked ( & mut self , idx: usize ) -> Self :: Item {
39263926 // SAFETY: the caller must guarantee that `i` is in bounds of
39273927 // the underlying slice, so `i` cannot overflow an `isize`, and
39283928 // the returned references is guaranteed to refer to an element
@@ -5022,7 +5022,7 @@ impl<'a, T> Iterator for Windows<'a, T> {
50225022 }
50235023
50245024 #[ doc( hidden) ]
5025- unsafe fn get_unchecked ( & mut self , idx : usize ) -> Self :: Item {
5025+ unsafe fn __iterator_get_unchecked ( & mut self , idx : usize ) -> Self :: Item {
50265026 // SAFETY: since the caller guarantees that `i` is in bounds,
50275027 // which means that `i` cannot overflow an `isize`, and the
50285028 // slice created by `from_raw_parts` is a subslice of `self.v`
@@ -5161,7 +5161,7 @@ impl<'a, T> Iterator for Chunks<'a, T> {
51615161 }
51625162
51635163 #[ doc( hidden) ]
5164- unsafe fn get_unchecked ( & mut self , idx : usize ) -> Self :: Item {
5164+ unsafe fn __iterator_get_unchecked ( & mut self , idx : usize ) -> Self :: Item {
51655165 let start = idx * self . chunk_size ;
51665166 let end = match start. checked_add ( self . chunk_size ) {
51675167 None => self . v . len ( ) ,
@@ -5310,7 +5310,7 @@ impl<'a, T> Iterator for ChunksMut<'a, T> {
53105310 }
53115311
53125312 #[ doc( hidden) ]
5313- unsafe fn get_unchecked ( & mut self , idx : usize ) -> Self :: Item {
5313+ unsafe fn __iterator_get_unchecked ( & mut self , idx : usize ) -> Self :: Item {
53145314 let start = idx * self . chunk_size ;
53155315 let end = match start. checked_add ( self . chunk_size ) {
53165316 None => self . v . len ( ) ,
@@ -5463,7 +5463,7 @@ impl<'a, T> Iterator for ChunksExact<'a, T> {
54635463 }
54645464
54655465 #[ doc( hidden) ]
5466- unsafe fn get_unchecked ( & mut self , idx : usize ) -> Self :: Item {
5466+ unsafe fn __iterator_get_unchecked ( & mut self , idx : usize ) -> Self :: Item {
54675467 let start = idx * self . chunk_size ;
54685468 // SAFETY: mostly identical to `Chunks::get_unchecked`.
54695469 unsafe { from_raw_parts ( self . v . as_ptr ( ) . add ( start) , self . chunk_size ) }
@@ -5597,7 +5597,7 @@ impl<'a, T> Iterator for ChunksExactMut<'a, T> {
55975597 }
55985598
55995599 #[ doc( hidden) ]
5600- unsafe fn get_unchecked ( & mut self , idx : usize ) -> Self :: Item {
5600+ unsafe fn __iterator_get_unchecked ( & mut self , idx : usize ) -> Self :: Item {
56015601 let start = idx * self . chunk_size ;
56025602 // SAFETY: see comments for `ChunksMut::get_unchecked`.
56035603 unsafe { from_raw_parts_mut ( self . v . as_mut_ptr ( ) . add ( start) , self . chunk_size ) }
@@ -5723,10 +5723,10 @@ impl<'a, T, const N: usize> Iterator for ArrayChunks<'a, T, N> {
57235723 self . iter . last ( )
57245724 }
57255725
5726- unsafe fn get_unchecked ( & mut self , i : usize ) -> & ' a [ T ; N ] {
5726+ unsafe fn __iterator_get_unchecked ( & mut self , i : usize ) -> & ' a [ T ; N ] {
57275727 // SAFETY: The safety guarantees of `get_unchecked` are transferred to
57285728 // the caller.
5729- unsafe { self . iter . get_unchecked ( i) }
5729+ unsafe { self . iter . __iterator_get_unchecked ( i) }
57305730 }
57315731}
57325732
@@ -5853,7 +5853,7 @@ impl<'a, T> Iterator for RChunks<'a, T> {
58535853 }
58545854
58555855 #[ doc( hidden) ]
5856- unsafe fn get_unchecked ( & mut self , idx : usize ) -> Self :: Item {
5856+ unsafe fn __iterator_get_unchecked ( & mut self , idx : usize ) -> Self :: Item {
58575857 let end = self . v . len ( ) - idx * self . chunk_size ;
58585858 let start = match end. checked_sub ( self . chunk_size ) {
58595859 None => 0 ,
@@ -5999,7 +5999,7 @@ impl<'a, T> Iterator for RChunksMut<'a, T> {
59995999 }
60006000
60016001 #[ doc( hidden) ]
6002- unsafe fn get_unchecked ( & mut self , idx : usize ) -> Self :: Item {
6002+ unsafe fn __iterator_get_unchecked ( & mut self , idx : usize ) -> Self :: Item {
60036003 let end = self . v . len ( ) - idx * self . chunk_size ;
60046004 let start = match end. checked_sub ( self . chunk_size ) {
60056005 None => 0 ,
@@ -6145,7 +6145,7 @@ impl<'a, T> Iterator for RChunksExact<'a, T> {
61456145 }
61466146
61476147 #[ doc( hidden) ]
6148- unsafe fn get_unchecked ( & mut self , idx : usize ) -> Self :: Item {
6148+ unsafe fn __iterator_get_unchecked ( & mut self , idx : usize ) -> Self :: Item {
61496149 let end = self . v . len ( ) - idx * self . chunk_size ;
61506150 let start = end - self . chunk_size ;
61516151 // SAFETY:
@@ -6286,7 +6286,7 @@ impl<'a, T> Iterator for RChunksExactMut<'a, T> {
62866286 }
62876287
62886288 #[ doc( hidden) ]
6289- unsafe fn get_unchecked ( & mut self , idx : usize ) -> Self :: Item {
6289+ unsafe fn __iterator_get_unchecked ( & mut self , idx : usize ) -> Self :: Item {
62906290 let end = self . v . len ( ) - idx * self . chunk_size ;
62916291 let start = end - self . chunk_size ;
62926292 // SAFETY: see comments for `RChunksMut::get_unchecked`.
0 commit comments