about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser/diagnostics.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-11-08 16:50:35 +0100
committerGitHub <noreply@github.com>2019-11-08 16:50:35 +0100
commit5a6fd110b8d4cded29d8ae69c41d12b2249621c8 (patch)
tree8f0e70a5ff4d53b4421347c814f8e168ea5f0b3e /src/libsyntax/parse/parser/diagnostics.rs
parent7ab50e40063a5f11aec148f59ad4d32e2a13fd70 (diff)
parent52e8ec14322e1f0c2cba5fc3c54e876e58a5ddee (diff)
downloadrust-5a6fd110b8d4cded29d8ae69c41d12b2249621c8.tar.gz
rust-5a6fd110b8d4cded29d8ae69c41d12b2249621c8.zip
Rollup merge of #66007 - estebank:remove-here, r=Centril
Remove "here" from "expected one of X here"
Diffstat (limited to 'src/libsyntax/parse/parser/diagnostics.rs')
-rw-r--r--src/libsyntax/parse/parser/diagnostics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser/diagnostics.rs b/src/libsyntax/parse/parser/diagnostics.rs
index 26d7f48025e..5df24804a76 100644
--- a/src/libsyntax/parse/parser/diagnostics.rs
+++ b/src/libsyntax/parse/parser/diagnostics.rs
@@ -287,7 +287,7 @@ impl<'a> Parser<'a> {
             };
             (format!("expected one of {}, found {}", expect, actual),
                 (self.sess.source_map().next_point(self.prev_span),
-                format!("expected one of {} here", short_expect)))
+                format!("expected one of {}", short_expect)))
         } else if expected.is_empty() {
             (format!("unexpected token: {}", actual),
                 (self.prev_span, "unexpected token after this".to_string()))