diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2014-05-26 22:00:08 +1000 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2014-05-26 22:44:38 +1000 |
| commit | 6ddd40d4368b1dbbc6bfa18d73d47beb05a55447 (patch) | |
| tree | 8c6174fc1eb31872755870db27f6c60423e74627 /src/libsyntax/parse | |
| parent | 6fad19e16b2770c6641d7a457415d4c4c65e1f8d (diff) | |
| download | rust-6ddd40d4368b1dbbc6bfa18d73d47beb05a55447.tar.gz rust-6ddd40d4368b1dbbc6bfa18d73d47beb05a55447.zip | |
syntax: Add a source field to `Local` for tracking if it comes from `let`s or `for`s.
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 ae5f16c2580..65687ce4d94 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -34,7 +34,7 @@ use ast::{Ident, NormalFn, Inherited, Item, Item_, ItemStatic}; use ast::{ItemEnum, ItemFn, ItemForeignMod, ItemImpl}; use ast::{ItemMac, ItemMod, ItemStruct, ItemTrait, ItemTy, Lit, Lit_}; use ast::{LitBool, LitFloat, LitFloatUnsuffixed, LitInt, LitChar}; -use ast::{LitIntUnsuffixed, LitNil, LitStr, LitUint, Local}; +use ast::{LitIntUnsuffixed, LitNil, LitStr, LitUint, Local, LocalLet}; use ast::{MutImmutable, MutMutable, Mac_, MacInvocTT, Matcher, MatchNonterminal}; use ast::{MatchSeq, MatchTok, Method, MutTy, BiMul, Mutability}; use ast::{NamedField, UnNeg, NoReturn, UnNot, P, Pat, PatEnum}; @@ -3034,6 +3034,7 @@ impl<'a> Parser<'a> { init: init, id: ast::DUMMY_NODE_ID, span: mk_sp(lo, self.last_span.hi), + source: LocalLet, } } |
