Skip to content

Commit e3eefe2

Browse files
committed
Remove extra debug print in unreachable!
1 parent 5dd6464 commit e3eefe2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustc_parse/parser/expr.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,8 +659,7 @@ impl<'a> Parser<'a> {
659659
ExprKind::MethodCall(_, _) => "a method call",
660660
ExprKind::Call(_, _) => "a function call",
661661
ExprKind::Await(_) => "`.await`",
662-
ref kind =>
663-
unreachable!("parse_dot_or_call_expr_with_ shouldn't produce a {:?}", kind),
662+
_ => unreachable!("parse_dot_or_call_expr_with_ shouldn't produce this"),
664663
}
665664
);
666665
let mut err = self.struct_span_err(span, &msg);

0 commit comments

Comments
 (0)