Files
rust/compiler/rustc_parse
Haoran Wang 0ab14caeaf Don't suggest adding in to a for loop that already has one
When a `for` loop is missing its `in`, the parser suggested inserting one
based only on the token after the pattern. A malformed binding such as
`for i i in 0..10` was therefore "corrected" to `for i in i in 0..10`,
which does not parse. Only suggest inserting `in` when the loop header
does not already contain one before the body.
2026-06-15 20:38:53 +08:00
..
2026-04-08 21:09:07 +02:00