diff options
| author | Tyler Mandry <tmandry@gmail.com> | 2020-08-14 20:07:13 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-14 20:07:13 -0700 |
| commit | e38eaf22d247644e5554d0c200e6df756e469b0a (patch) | |
| tree | 7bb376f1bd26749a2cf976e4b15c3634daf41d64 /src/test/rustdoc-ui/coverage/json.rs | |
| parent | 28b11abc2f336288379b6e635e65e23809616487 (diff) | |
| parent | 2e9b45e1dd8d3a248e2aea60314787650e3abcc9 (diff) | |
| download | rust-e38eaf22d247644e5554d0c200e6df756e469b0a.tar.gz rust-e38eaf22d247644e5554d0c200e6df756e469b0a.zip | |
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_
Diffstat (limited to 'src/test/rustdoc-ui/coverage/json.rs')
0 files changed, 0 insertions, 0 deletions
