mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 02:27:39 +03:00
98756959c0
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