We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4311a4d commit 948ff67Copy full SHA for 948ff67
src/librustc_parse/parser/expr.rs
@@ -890,7 +890,7 @@ impl<'a> Parser<'a> {
890
// 2 | foo(bar(;
891
// | ^ expected expression
892
self.bump();
893
- Ok(self.mk_expr(self.token.span, ExprKind::Err, ThinVec::new()))
+ Ok(self.mk_expr_err(self.token.span))
894
} else if self.token.span.rust_2018() {
895
// `Span::rust_2018()` is somewhat expensive; don't get it repeatedly.
896
if self.check_keyword(kw::Async) {
0 commit comments