inlined kind

This commit is contained in:
darklyspaced 2023-08-08 10:59:15 +08:00
parent 3aa0411c3c
commit 89284af8fe
No known key found for this signature in database

View File

@ -1717,8 +1717,7 @@ impl<'a> Parser<'a> {
self.recover_await_prefix(await_sp)?
};
let sp = self.error_on_incorrect_await(lo, hi, &expr, is_question);
let kind = ExprKind::Err;
let expr = self.mk_expr(lo.to(sp), kind);
let expr = self.mk_expr(lo.to(sp), ExprKind::Err);
self.maybe_recover_from_bad_qpath(expr)
}