Account for incorrect [].into_iter()
in <2021 edition
#85189
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-edition-2021
Area: The 2021 edition
D-edition
Diagnostics: An error or lint that should account for edition differences.
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Currently uses of
<[_; _] as _>::into_iter()
emit a future compat warning:but at some point this will cause ambiguity errors on 2015 and 2018 editions. On 2021 onwards, this case is handled by a special attribute and keeps the code compiling.
We should detect that case explicitly and provide guidance about what to write in the current edition, or to update to the new edition.
The text was updated successfully, but these errors were encountered: