about summary refs log tree commit diff
path: root/src/librustc_parse/parser/stmt.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2020-05-01 18:24:14 -0700
committerEsteban Küber <esteban@kuber.com.ar>2020-05-05 19:35:20 -0700
commit3cf556939e4f5fcce686ad9c157ac331bd05aabc (patch)
treecd83bd426c7021aaef20743110ea1d6457cf595b /src/librustc_parse/parser/stmt.rs
parent6318d24ad8440fa30428b405be1174478e9536e3 (diff)
Detect errors caused by `async` block in 2015 edition
Diffstat (limited to 'src/librustc_parse/parser/stmt.rs')
-rw-r--r--src/librustc_parse/parser/stmt.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_parse/parser/stmt.rs b/src/librustc_parse/parser/stmt.rs
index e5d0ab247aa..849193151c3 100644
--- a/src/librustc_parse/parser/stmt.rs
+++ b/src/librustc_parse/parser/stmt.rs
@@ -79,7 +79,7 @@ impl<'a> Parser<'a> {
         }
 
         let expr = if self.check(&token::OpenDelim(token::Brace)) {
-            self.parse_struct_expr(lo, path, AttrVec::new())?
+            self.parse_struct_expr(path, AttrVec::new())?
         } else {
             let hi = self.prev_token.span;
             self.mk_expr(lo.to(hi), ExprKind::Path(None, path), AttrVec::new())