1
Fork 0

Deduplicate mismatched delimiter errors

Delay unmatched delimiter errors until after the parser has run to
deduplicate them when parsing and attempt recovering intelligently.
This commit is contained in:
Esteban Küber 2019-01-27 21:04:50 -08:00
parent 825f355c74
commit 7451cd8dc0
17 changed files with 335 additions and 158 deletions

View file

@ -413,7 +413,7 @@ impl server::TokenStream for Rustc<'_> {
src.to_string(),
self.sess,
Some(self.call_site),
)
).0
}
fn to_string(&mut self, stream: &Self::TokenStream) -> String {
stream.to_string()