about summary refs log tree commit diff
path: root/src/librustc_parse/parser
diff options
context:
space:
mode:
authorDavid Ross <daboross@daboross.net>2020-02-15 17:09:42 -0800
committerDavid Ross <daboross@daboross.net>2020-02-15 19:51:02 -0800
commite3eefe266756449ebe3b2c1bb177f0130569b3b2 (patch)
treee44b3b0bc1b8ed0504b4a181c968e3cc3b26bf63 /src/librustc_parse/parser
parent5dd646435ba882574e677acf58113880a6570949 (diff)
downloadrust-e3eefe266756449ebe3b2c1bb177f0130569b3b2.tar.gz
rust-e3eefe266756449ebe3b2c1bb177f0130569b3b2.zip
Remove extra debug print in unreachable!
Diffstat (limited to 'src/librustc_parse/parser')
-rw-r--r--src/librustc_parse/parser/expr.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustc_parse/parser/expr.rs b/src/librustc_parse/parser/expr.rs
index fe5570f26ab..3d0f746d395 100644
--- a/src/librustc_parse/parser/expr.rs
+++ b/src/librustc_parse/parser/expr.rs
@@ -659,8 +659,7 @@ impl<'a> Parser<'a> {
                     ExprKind::MethodCall(_, _) => "a method call",
                     ExprKind::Call(_, _) => "a function call",
                     ExprKind::Await(_) => "`.await`",
-                    ref kind =>
-                        unreachable!("parse_dot_or_call_expr_with_ shouldn't produce a {:?}", kind),
+                    _ => unreachable!("parse_dot_or_call_expr_with_ shouldn't produce this"),
                 }
             );
             let mut err = self.struct_span_err(span, &msg);