diff --git a/src/librustc_parse/parser/expr.rs b/src/librustc_parse/parser/expr.rs index fe5570f26abd..3d0f746d3955 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);