You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
475: Trait impls for tuples of arity <= 12 r=jswrenn a=jswrenn
I stopped at 12, because that's where libcore stops.
fixes#428fixes#398
476: Undeprecate and optimize `fold_while` r=jswrenn a=jswrenn
Prompted by #469.
479: fix compiler warning on array.into_iter() r=jswrenn a=dmitris
Fix the compile warnings listed below by changing `into_iter()` invocation to `iter()`
in the `impl_zip_iter` macro as recommended in rust-lang/rust#66145.
For additional background, see also rust-lang/rust#65819 and rust-lang/rust#66017 (the latter is the linter change producing the warning).
```
$ cargo build
Compiling itertools v0.9.0 (/Users/dsavints/dev/hack/github.com/rust-itertools/itertools)
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
--> src/ziptuple.rs:111:47
|
111 | let size = *[$( $B.len(), )*].into_iter().min().unwrap();
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
...
128 | impl_zip_iter!(A);
| ------------------ in this macro invocation
|
= note: `#[warn(array_into_iter)]` on by default
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #66145 <rust-lang/rust#66145>
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
warning: this method call currently resolves to `<&[T; N] as IntoIterator>::into_iter` (due to autoref coercions), but that might change in the future when `IntoIterator` impls for arrays are added.
--> src/ziptuple.rs:111:47
|
111 | let size = *[$( $B.len(), )*].into_iter().min().unwrap();
| ^^^^^^^^^ help: use `.iter()` instead of `.into_iter()` to avoid ambiguity: `iter`
...
129 | impl_zip_iter!(A, B);
| --------------------- in this macro invocation
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #66145 <rust-lang/rust#66145>
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
```
Co-authored-by: Jack Wrenn <[email protected]>
Co-authored-by: Dmitry Savintsev <[email protected]>
0 commit comments