rust/src/librustc_parse
Dylan DPC ea44d71f9b
Rollup merge of #70209 - Centril:recover-quant-closure, r=petrochenkov
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
2020-03-22 15:48:32 +01:00
..
lexer parse/lexer: support StringReader::retokenize called on external files. 2020-03-20 08:00:06 +02:00
parser Rollup merge of #70209 - Centril:recover-quant-closure, r=petrochenkov 2020-03-22 15:48:32 +01:00
Cargo.toml Rename syntax to rustc_ast in source code 2020-02-29 21:59:09 +03:00
lib.rs remove redundant returns (clippy::needless_return) 2020-03-20 20:23:03 +01:00
validate_attr.rs {rustc_parse -> rustc_expand}::config 2020-03-18 15:08:25 +01:00