diff options
| author | Eric Huss <eric@huss.org> | 2020-05-15 20:51:12 -0700 |
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2020-05-15 20:51:12 -0700 |
| commit | 004f4f389e5cf5cbb1f9604c5f7691cd16b1966e (patch) | |
| tree | 138871d55412f806d66b2ca977579db5de5bd749 /src/librustc_parse | |
| parent | ed084b0b8341c974769a0328f61851b0e1fc17fa (diff) | |
| download | rust-004f4f389e5cf5cbb1f9604c5f7691cd16b1966e.tar.gz rust-004f4f389e5cf5cbb1f9604c5f7691cd16b1966e.zip | |
Remove redundant backtick in error message.
The value passed in already has backticks surrounding the text.
Diffstat (limited to 'src/librustc_parse')
| -rw-r--r-- | src/librustc_parse/parser/diagnostics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_parse/parser/diagnostics.rs b/src/librustc_parse/parser/diagnostics.rs index 437d0ffa119..93c7faf22a7 100644 --- a/src/librustc_parse/parser/diagnostics.rs +++ b/src/librustc_parse/parser/diagnostics.rs @@ -927,7 +927,7 @@ impl<'a> Parser<'a> { return Ok(()); } let sm = self.sess.source_map(); - let msg = format!("expected `;`, found `{}`", super::token_descr(&self.token)); + let msg = format!("expected `;`, found {}", super::token_descr(&self.token)); let appl = Applicability::MachineApplicable; if self.token.span == DUMMY_SP || self.prev_token.span == DUMMY_SP { // Likely inside a macro, can't provide meaningful suggestions. |
