parser: recover on `for<'a> |...| body` closures When encountering `for` and `<` is 1 token ahead, interpret this as an explicitly quantified generic closure and recover, rather than attempting to parse a `for` loop. This provides both improved diagnostics as well as an insurance policy for the ability to use this as the syntax for generic closures in the future. As requested by r? @eddyb |
||
|---|---|---|
| .. | ||
| lexer | ||
| parser | ||
| Cargo.toml | ||
| lib.rs | ||
| validate_attr.rs | ||