rust/src/librustc_parse
Tyler Mandry e38eaf22d2
Rollup merge of #75513 - estebank:confused-parser, r=davidtwco
Recover gracefully from `struct` parse errors

Currently the parser tries to recover from finding a keyword where a field name was expected, but this causes extra knock down parse errors that are completely irrelevant. Instead, bail out early in the parsing of the field and consume the remaining tokens in the block. This can reduce output significantly.

_Improvements based on the narrative in https://fasterthanli.me/articles/i-am-a-java-csharp-c-or-cplusplus-dev-time-to-do-some-rust_
2020-08-14 20:07:13 -07:00
..
lexer Add some comments for magic numbers + Add tests 2020-08-06 22:55:26 +03:00
parser Rollup merge of #75513 - estebank:confused-parser, r=davidtwco 2020-08-14 20:07:13 -07:00
Cargo.toml Move 'probably equal' methods to librustc_parse 2020-08-01 21:12:49 -04:00
lib.rs rustc_ast: Stop using "string typing" for doc comment tokens 2020-08-06 22:13:11 +03:00
validate_attr.rs {rustc_parse -> rustc_expand}::config 2020-03-18 15:08:25 +01:00