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:
parent
825f355c74
commit
7451cd8dc0
17 changed files with 335 additions and 158 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue