rust/src/librustc_parse/parser
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
..
attr.rs parser/attr: adjust indentation. 2020-03-10 08:35:23 +01:00
diagnostics.rs detach submod_path from Parser 2020-03-18 15:08:25 +01:00
expr.rs Rollup merge of #70209 - Centril:recover-quant-closure, r=petrochenkov 2020-03-22 15:48:32 +01:00
generics.rs recover on for<'a> |...| body closures. 2020-03-21 09:54:03 +01:00
item.rs Rollup merge of #70209 - Centril:recover-quant-closure, r=petrochenkov 2020-03-22 15:48:32 +01:00
mod.rs {rustc_parse::parser -> rustc_expand}::module 2020-03-18 15:08:25 +01:00
pat.rs Rollup merge of #70187 - matthiaskrgr:cl2ppy, r=Mark-Simulacrum 2020-03-21 05:33:31 +01:00
path.rs rustc_parse: Use Token::ident where possible 2020-03-09 12:42:41 +03:00
stmt.rs remove redundant returns (clippy::needless_return) 2020-03-20 20:23:03 +01:00
ty.rs ast: Mac/Macro -> MacCall 2020-03-12 22:26:52 +03:00