about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/json.rs
diff options
context:
space:
mode:
authorTyler Mandry <tmandry@gmail.com>2020-08-14 20:07:13 -0700
committerGitHub <noreply@github.com>2020-08-14 20:07:13 -0700
commite38eaf22d247644e5554d0c200e6df756e469b0a (patch)
tree7bb376f1bd26749a2cf976e4b15c3634daf41d64 /src/test/rustdoc-ui/coverage/json.rs
parent28b11abc2f336288379b6e635e65e23809616487 (diff)
parent2e9b45e1dd8d3a248e2aea60314787650e3abcc9 (diff)
downloadrust-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