rust/clippy_lints/src/methods
bors 9af07e65aa Auto merge of #7138 - mgacek8:issue6808_iter_cloned_collect_FN_with_large_array, r=Manishearth
Fix FN in `iter_cloned_collect` with a large array

fixes #6808
changelog: Fix FN in `iter_cloned_collect` with a large array

I spotted that [is_iterable_array](a362a4d1d0/clippy_lints/src/loops/explicit_iter_loop.rs (L67-L75)) 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](https://doc.rust-lang.org/src/core/array/mod.rs.html#194-201) 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.
2021-04-27 13:44:51 +00:00
..
bind_instead_of_map.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
bytes_nth.rs
chars_cmp_with_unwrap.rs
chars_cmp.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
chars_last_cmp_with_unwrap.rs
chars_last_cmp.rs
chars_next_cmp_with_unwrap.rs
chars_next_cmp.rs
clone_on_copy.rs
clone_on_ref_ptr.rs
cloned_instead_of_copied.rs Refactor MSRV aliases 2021-04-26 16:07:48 -05:00
expect_fun_call.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
expect_used.rs
filetype_is_file.rs
filter_map_identity.rs Remove all usages of match_path, match_qpath and match_path_ast except the author lint. 2021-04-15 19:27:25 -04:00
filter_map_next.rs Refactor MSRV aliases 2021-04-26 16:07:48 -05:00
filter_map.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
filter_next.rs
flat_map_identity.rs Remove all usages of match_path, match_qpath and match_path_ast except the author lint. 2021-04-15 19:27:25 -04:00
flat_map_option.rs Add flat_map_option lint 2021-04-16 15:23:49 -05:00
from_iter_instead_of_collect.rs Remove all usages of match_path, match_qpath and match_path_ast except the author lint. 2021-04-15 19:27:25 -04:00
get_unwrap.rs
implicit_clone.rs Refactor diagnostic item methods 2021-04-13 14:10:40 -05:00
inefficient_to_string.rs
inspect_for_each.rs
into_iter_on_ref.rs
iter_cloned_collect.rs
iter_count.rs
iter_next_slice.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
iter_nth_zero.rs
iter_nth.rs
iter_skip_next.rs
iterator_step_by_zero.rs
manual_saturating_arithmetic.rs Remove all usages of match_path, match_qpath and match_path_ast except the author lint. 2021-04-15 19:27:25 -04:00
map_collect_result_unit.rs
map_flatten.rs
map_unwrap_or.rs Refactor MSRV aliases 2021-04-26 16:07:48 -05:00
mod.rs Fix cloned_instead_of_copied MSRV 2021-04-25 09:54:04 -05:00
ok_expect.rs
option_as_ref_deref.rs Refactor MSRV aliases 2021-04-26 16:07:48 -05:00
option_map_or_none.rs Introduce is_lang_ctor 2021-04-06 15:05:00 -05:00
option_map_unwrap_or.rs
or_fun_call.rs Symbol optimizations 2021-04-06 13:00:36 -05:00
search_is_some.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
single_char_add_str.rs
single_char_insert_string.rs
single_char_pattern.rs
single_char_push_string.rs
skip_while_next.rs
string_extend_chars.rs
suspicious_map.rs
uninit_assumed_init.rs Remove all usages of match_path, match_qpath and match_path_ast except the author lint. 2021-04-15 19:27:25 -04:00
unnecessary_filter_map.rs Remove all usages of match_path, match_qpath and match_path_ast except the author lint. 2021-04-15 19:27:25 -04:00
unnecessary_fold.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00
unnecessary_lazy_eval.rs
unwrap_used.rs
useless_asref.rs
utils.rs Fix FN in iter_cloned_collect with a large array 2021-04-26 13:03:51 -07:00
wrong_self_convention.rs Fix FP in wrong_self_convention lint 2021-04-11 13:29:08 +02:00
zst_offset.rs Fix all occurences of needless_borrow internally 2021-04-06 10:43:47 -04:00