diff options
| author | mitaa <mitaa.ceb@gmail.com> | 2015-07-25 22:43:35 +0200 |
|---|---|---|
| committer | mitaa <mitaa.ceb@gmail.com> | 2015-07-26 08:56:29 +0200 |
| commit | adfdbc4bd75f2581e9ad0151b26fb786b64475f8 (patch) | |
| tree | 45fb3bde3a8e759edf82b717beccebbfbc41ade9 /src/libsyntax/parse/parser.rs | |
| parent | 7276d8b7613c81c09feeec3bf94d47c4a5174bc8 (diff) | |
| download | rust-adfdbc4bd75f2581e9ad0151b26fb786b64475f8.tar.gz rust-adfdbc4bd75f2581e9ad0151b26fb786b64475f8.zip | |
Remove `ast::LocalSource` with only one used variant
`LocalSource` indicated wether a let binding originated from for-loop desugaring to enable specialized error messages, but for-loop expansion has changed and this is now achieved through `MatchSource::ForLoopDesugar`.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index c2a2259a80a..04665140e2f 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -35,7 +35,7 @@ use ast::{ItemMac, ItemMod, ItemStruct, ItemTrait, ItemTy, ItemDefaultImpl}; use ast::{ItemExternCrate, ItemUse}; use ast::{LifetimeDef, Lit, Lit_}; use ast::{LitBool, LitChar, LitByte, LitBinary}; -use ast::{LitStr, LitInt, Local, LocalLet}; +use ast::{LitStr, LitInt, Local}; use ast::{MacStmtWithBraces, MacStmtWithSemicolon, MacStmtWithoutBraces}; use ast::{MutImmutable, MutMutable, Mac_, MacInvocTT, MatchSource}; use ast::{MutTy, BiMul, Mutability}; @@ -3432,7 +3432,6 @@ impl<'a> Parser<'a> { init: init, id: ast::DUMMY_NODE_ID, span: mk_sp(lo, self.last_span.hi), - source: LocalLet, })) } |
