about summary refs log tree commit diff
path: root/src/libsyntax/parse/mod.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-07-02 04:10:19 +0200
committerMazdak Farrokhzad <twingoow@gmail.com>2019-07-03 23:59:36 +0200
commitbb7fbb99a293e39793a2d6497a472cce107baf56 (patch)
tree3c5322f3ac02f9b8c8030378397b8838e409be36 /src/libsyntax/parse/mod.rs
parent088b987307b91612ab164026e1dcdd0129fdb62b (diff)
downloadrust-bb7fbb99a293e39793a2d6497a472cce107baf56.tar.gz
rust-bb7fbb99a293e39793a2d6497a472cce107baf56.zip
Add separate 'async_closure' feature gate.
Diffstat (limited to 'src/libsyntax/parse/mod.rs')
-rw-r--r--src/libsyntax/parse/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs
index e19eab371f4..4056905d5dd 100644
--- a/src/libsyntax/parse/mod.rs
+++ b/src/libsyntax/parse/mod.rs
@@ -57,6 +57,8 @@ pub struct ParseSess {
     pub param_attr_spans: Lock<Vec<Span>>,
     // Places where `let` exprs were used and should be feature gated according to `let_chains`.
     pub let_chains_spans: Lock<Vec<Span>>,
+    // Places where `async || ..` exprs were used and should be feature gated.
+    pub async_closure_spans: Lock<Vec<Span>>,
 }
 
 impl ParseSess {
@@ -84,6 +86,7 @@ impl ParseSess {
             ambiguous_block_expr_parse: Lock::new(FxHashMap::default()),
             param_attr_spans: Lock::new(Vec::new()),
             let_chains_spans: Lock::new(Vec::new()),
+            async_closure_spans: Lock::new(Vec::new()),
         }
     }