about summary refs log tree commit diff
diff options
context:
space:
mode:
authordarklyspaced <srohanjd@gmail.com>2023-08-08 10:59:15 +0800
committerdarklyspaced <srohanjd@gmail.com>2023-08-08 10:59:15 +0800
commit89284af8fe412a6eaa46d92423762d1fcd1161fa (patch)
tree6cbefa3f3dca56c883ef16d102116ed89579fb1f
parent3aa0411c3c21ee99f88df8aa4d19c74d99f11b7c (diff)
downloadrust-89284af8fe412a6eaa46d92423762d1fcd1161fa.tar.gz
rust-89284af8fe412a6eaa46d92423762d1fcd1161fa.zip
inlined kind
-rw-r--r--compiler/rustc_parse/src/parser/diagnostics.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/parser/diagnostics.rs b/compiler/rustc_parse/src/parser/diagnostics.rs
index f5896c71fbc..6c8ef34063f 100644
--- a/compiler/rustc_parse/src/parser/diagnostics.rs
+++ b/compiler/rustc_parse/src/parser/diagnostics.rs
@@ -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)
     }