Skip to content

Commit e63b091

Browse files
committed
Clarify that lint is already on
1 parent 09fd06d commit e63b091

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/rust-2021/IntoIterator-for-arrays.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,13 @@ this solution keeps the difference between the editions to an absolute minimum.
5252

5353
## Migration
5454

55-
A migration lint, `array_into_iter`, has been added in order to aid in automatic migration of Rust 2018 codebases to Rust 2021.
55+
A lint, `array_into_iter`, gets triggered whenever there is some call to `into_iter()` that will change
56+
meaning in Rust 2021. The `array_into_iter` lint has already been a warning by default on all editions
57+
since the 1.41 release (with several enhancements made in 1.55). If your code is already warning free,
58+
then it should already be ready to go for Rust 2021!
5659

57-
In order to have `rustfix` migrate your code to be Rust 2021 Edition compatible, run:
60+
You can automatically migrate your code to be Rust 2021 Edition compatible or ensure it is already compatible by
61+
running:
5862

5963
```sh
6064
cargo fix --edition

0 commit comments

Comments
 (0)