diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-06-17 05:41:21 +0200 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-06-23 01:29:29 +0200 |
| commit | eb4f54a58d0247dbd830165fd2ff214e07890964 (patch) | |
| tree | 59489d9d482d57bf95a33850bc6a605aa824c452 /src/libsyntax/parse/mod.rs | |
| parent | d5518802677d4701185b5cd3b9df4b263fc864b2 (diff) | |
| download | rust-eb4f54a58d0247dbd830165fd2ff214e07890964.tar.gz rust-eb4f54a58d0247dbd830165fd2ff214e07890964.zip | |
let_chains: Move feature gating to pre-expansion.
Diffstat (limited to 'src/libsyntax/parse/mod.rs')
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index ba5d1d009d1..e19eab371f4 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -54,7 +54,9 @@ pub struct ParseSess { /// operation token that followed it, but that the parser cannot identify without further /// analysis. pub ambiguous_block_expr_parse: Lock<FxHashMap<Span, Span>>, - pub param_attr_spans: Lock<Vec<Span>> + 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>>, } impl ParseSess { @@ -81,6 +83,7 @@ impl ParseSess { edition: Edition::from_session(), ambiguous_block_expr_parse: Lock::new(FxHashMap::default()), param_attr_spans: Lock::new(Vec::new()), + let_chains_spans: Lock::new(Vec::new()), } } |
