diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-09-22 00:19:02 +0200 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-10-24 00:32:03 +0200 |
| commit | 15a6c09b6e8a977f2c6f5a73de01a20d00b37930 (patch) | |
| tree | c367b20d8aed10f33996bbbb5227b99c7150dad7 /src/libsyntax/parse/parser | |
| parent | e4ed8865786a787a7b0c045f7674569b6be0e9bc (diff) | |
| download | rust-15a6c09b6e8a977f2c6f5a73de01a20d00b37930.tar.gz rust-15a6c09b6e8a977f2c6f5a73de01a20d00b37930.zip | |
pre-expansion gate type_ascription
Diffstat (limited to 'src/libsyntax/parse/parser')
| -rw-r--r-- | src/libsyntax/parse/parser/expr.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/parse/parser/expr.rs b/src/libsyntax/parse/parser/expr.rs index e7dd15654d8..97b1092452a 100644 --- a/src/libsyntax/parse/parser/expr.rs +++ b/src/libsyntax/parse/parser/expr.rs @@ -252,6 +252,7 @@ impl<'a> Parser<'a> { self.last_type_ascription = Some((self.prev_span, maybe_path)); lhs = self.parse_assoc_op_cast(lhs, lhs_span, ExprKind::Type)?; + self.sess.gated_spans.type_ascription.borrow_mut().push(lhs.span); continue } else if op == AssocOp::DotDot || op == AssocOp::DotDotEq { // If we didn’t have to handle `x..`/`x..=`, it would be pretty easy to |
