about summary refs log tree commit diff
path: root/src/librustc_parse
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2020-05-15 20:51:12 -0700
committerEric Huss <eric@huss.org>2020-05-15 20:51:12 -0700
commit004f4f389e5cf5cbb1f9604c5f7691cd16b1966e (patch)
tree138871d55412f806d66b2ca977579db5de5bd749 /src/librustc_parse
parented084b0b8341c974769a0328f61851b0e1fc17fa (diff)
downloadrust-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.rs2
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.