Files
rust/tests
Samuel Tardieu 98756959c0 useless_conversion: do not lint (a..b).into_iter() (for edition migration) (#16891)
In a future edition of Rust or with the unstable `feature(new_range)`,
the syntax `a..b` will change from producing type `core::ops::Range`,
which implements `Iterator`, to producing type `core::range::Range`,
which implements `IntoIterator`.

Therefore, an `.into_iter()` call that is technically useless today will
be useful for edition migration or unstable feature testing; do not
remove it.

Also:

* Fix issue number for existing tests
* Fix docs reference to `IntoIter` (not the name of the trait)
* Rename some variables to be clearer

changelog: [`useless_conversion`]: do not lint on `(a..b).into_iter()`,
to allow compatibility with future range syntax changes
2026-04-21 07:02:22 +00:00
..