]> git.lizzy.rs Git - rust.git/commitdiff
Remove extra debug print in unreachable!
authorDavid Ross <daboross@daboross.net>
Sun, 16 Feb 2020 01:09:42 +0000 (17:09 -0800)
committerDavid Ross <daboross@daboross.net>
Sun, 16 Feb 2020 03:51:02 +0000 (19:51 -0800)
src/librustc_parse/parser/expr.rs

index fe5570f26abd53287049ef33a0d76156fd82f172..3d0f746d3955c42b3d8c46c4cd9764edb558638f 100644 (file)
@@ -659,8 +659,7 @@ fn parse_and_disallow_postfix_after_cast(
                     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);