diff options
| author | David Wood <david@davidtw.co> | 2019-03-12 16:53:33 +0100 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2019-04-21 09:48:11 +0100 |
| commit | 41c6bb1096abb026d496c2136bb18c001eca46fe (patch) | |
| tree | 18bc1364d09a1e9ac054d312355af65ca5139c72 /src/libsyntax/parse | |
| parent | 8b57be1bb3be3be5ac431ed9a0a310d2023b1c9d (diff) | |
| download | rust-41c6bb1096abb026d496c2136bb18c001eca46fe.tar.gz rust-41c6bb1096abb026d496c2136bb18c001eca46fe.zip | |
Introduce `LocalSource` into the AST.
This will be used to keep track of the origin of a local in the AST. In particular, it will be used by `async fn` lowering for the locals in `let <pat>: <ty> = __arg0;` statements.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 8feab373e71..8620627765f 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -14,7 +14,7 @@ use crate::ast::{GenericParam, GenericParamKind}; use crate::ast::GenericArg; use crate::ast::{Ident, ImplItem, IsAsync, IsAuto, Item, ItemKind}; use crate::ast::{Label, Lifetime, Lit, LitKind}; -use crate::ast::Local; +use crate::ast::{Local, LocalSource}; use crate::ast::MacStmtStyle; use crate::ast::{Mac, Mac_, MacDelimiter}; use crate::ast::{MutTy, Mutability}; @@ -5029,6 +5029,7 @@ impl<'a> Parser<'a> { id: ast::DUMMY_NODE_ID, span: lo.to(hi), attrs, + source: LocalSource::Normal, })) } |
