rust/src/test
Mara Bos caca256b52
Rollup merge of #88503 - m-ou-se:array-into-inter-ambiguous, r=cjgillot
Warn when [T; N].into_iter() is ambiguous in the new edition.

Fixes https://github.com/rust-lang/rust/issues/88475

In https://github.com/rust-lang/rust/issues/88475, a situation was found where `[T; N].into_iter()` becomes *ambiguous* in the new edition. This is different than the case where `(&[T; N]).into_iter()` resolves differently, which was the only case handled by the `array_into_iter` lint. This is almost identical to the new-traits-in-the-prelude problem. Effectively, due to the array-into-iter hack disappearing in Rust 2021, we effectively added `IntoIterator` to the 'prelude' in Rust 2021 specifically for arrays.

This modifies the prelude collisions lint to detect that case and emit a `array_into_iter` lint in that case.
2021-08-31 10:41:29 +02:00
..
assembly Feat: added explicit register tests; added prefix to check_reg asm string 2021-08-24 12:41:49 -04:00
auxiliary
codegen don't generate partially-undef consts 2021-08-25 17:49:28 -04:00
codegen-units
debuginfo feature(const_param_types) -> feature(adt_const_params) 2021-08-30 12:07:36 +02:00
incremental feature(const_param_types) -> feature(adt_const_params) 2021-08-30 12:07:36 +02:00
mir-opt Auto merge of #88371 - Manishearth:rollup-pkkjsme, r=Manishearth 2021-08-27 01:07:17 +00:00
pretty Make Arguments constructors unsafe 2021-08-16 16:28:16 +00:00
run-make Don't use guess_head_span in predicates_of for foreign span 2021-08-27 23:19:49 -05:00
run-make-fulldeps Auto merge of #85344 - cbeuw:remap-across-cwd, r=michaelwoerister 2021-08-25 10:58:43 +00:00
run-pass-valgrind
rustdoc feature(const_param_types) -> feature(adt_const_params) 2021-08-30 12:07:36 +02:00
rustdoc-gui Add test for code blocks color 2021-08-28 11:44:02 +02:00
rustdoc-js fix(rustdoc): generics search 2021-07-01 06:40:27 -07:00
rustdoc-js-std fix(rustdoc): generics search 2021-07-01 06:40:27 -07:00
rustdoc-json
rustdoc-ui Update tests 2021-08-28 00:24:39 -07:00
ui Rollup merge of #88503 - m-ou-se:array-into-inter-ambiguous, r=cjgillot 2021-08-31 10:41:29 +02:00
ui-fulldeps Fix typos “an”→“a” and a few different ones that appeared in the same search 2021-08-22 18:15:49 +02:00
COMPILER_TESTS.md