Github Fix FN in `iter_cloned_collect` with a large array by mgacek8 · Pull Requ...
source link: https://github.com/rust-lang/rust-clippy/pull/7138
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
fixes #6808
changelog: Fix FN in iter_cloned_collect
with a large array
I spotted that is_iterable_array function that explicit_iter_loop
lint is using only works for array sizes <= 32.
There is this comment:
IntoIterator is currently only implemented for array sizes <= 32 in rustc
I'm a bit confused, because I read that IntoIterator for arrays with const generic N
is stable since = "1.0.0". Although Const Generics MVP were stabilized in Rust 1.51.
Should I set MSRV for the current change? I will try to test with older compilers soon.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK