]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #65838 - estebank:resilient-recovery, r=Centril
authorbors <bors@rust-lang.org>
Mon, 4 Nov 2019 02:30:45 +0000 (02:30 +0000)
committerbors <bors@rust-lang.org>
Mon, 4 Nov 2019 02:30:45 +0000 (02:30 +0000)
Reduce amount of errors given unclosed delimiter

When in a file with a non-terminated item, catch the error and consume
the block instead of trying to recover it on a more granular way in order to
reduce the amount of unrelated errors that would be fixed after adding
the missing closing brace. Also point out the possible location of the
missing closing brace.

Fix #63690.

1  2 
src/librustc_metadata/cstore_impl.rs

Simple merge