Commit 86a4b27
committed
Increment
Otherwise if `Iterator::self.a.__iterator_get_unchecked` panics the
index would not have been incremented yet and another call to
`Iterator::next` would read from the same index again, which is not
allowed according to the API contract of `TrustedRandomAccess` for
`!Clone`.
Fixes #81740self.index before calling Iterator::self.a.__iterator_get_unchecked in Zip TrustedRandomAccess specialization1 parent e708cbd commit 86a4b27
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
| 202 | + | |
201 | 203 | | |
202 | | - | |
| 204 | + | |
203 | 205 | | |
204 | | - | |
| 206 | + | |
205 | 207 | | |
206 | | - | |
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
| |||
0 commit comments