Skip to content

Commit

Permalink
Remove extra debug print in unreachable!
Browse files Browse the repository at this point in the history
  • Loading branch information
daboross committed Feb 16, 2020
1 parent 5dd6464 commit e3eefe2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/librustc_parse/parser/expr.rs
Expand Up @@ -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);
Expand Down

0 comments on commit e3eefe2

Please sign in to comment.