@@ -31,9 +31,9 @@ impl<T, const N: usize> PartialDrop for [MaybeUninit<T>; N] {
3131/// The real `array::IntoIter<T, N>` stores a `PolymorphicIter<[MaybeUninit<T>, N]>`
3232/// which it unsizes to `PolymorphicIter<[MaybeUninit<T>]>` to iterate.
3333#[ allow( private_bounds) ]
34- pub ( super ) struct PolymorphicIter < TAIL : ?Sized >
34+ pub ( super ) struct PolymorphicIter < DATA : ?Sized >
3535where
36- TAIL : PartialDrop ,
36+ DATA : PartialDrop ,
3737{
3838 /// The elements in `data` that have not been yielded yet.
3939 ///
@@ -55,13 +55,13 @@ where
5555 /// - `data[alive]` is alive (i.e. contains valid elements)
5656 /// - `data[..alive.start]` and `data[alive.end..]` are dead (i.e. the
5757 /// elements were already read and must not be touched anymore!)
58- data : TAIL ,
58+ data : DATA ,
5959}
6060
6161#[ allow( private_bounds) ]
62- impl < TAIL : ?Sized > PolymorphicIter < TAIL >
62+ impl < DATA : ?Sized > PolymorphicIter < DATA >
6363where
64- TAIL : PartialDrop ,
64+ DATA : PartialDrop ,
6565{
6666 #[ inline]
6767 pub ( super ) const fn len ( & self ) -> usize {
7070}
7171
7272#[ allow( private_bounds) ]
73- impl < TAIL : ?Sized > Drop for PolymorphicIter < TAIL >
73+ impl < DATA : ?Sized > Drop for PolymorphicIter < DATA >
7474where
75- TAIL : PartialDrop ,
75+ DATA : PartialDrop ,
7676{
7777 #[ inline]
7878 fn drop ( & mut self ) {
@@ -209,7 +209,7 @@ impl<T> PolymorphicIter<[MaybeUninit<T>]> {
209209 R : Try < Output = B > ,
210210 {
211211 // `alive` is an `IndexRange`, not an arbitrary iterator, so we can
212- // trust that its `try_rfold ` isn't going to do something weird like
212+ // trust that its `try_fold ` isn't going to do something weird like
213213 // call the fold-er multiple times for the same index.
214214 let data = & mut self . data ;
215215 self . alive . try_fold ( init, move |accum, idx| {
0 commit comments