diff options
| author | bors <bors@rust-lang.org> | 2014-08-07 02:26:07 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-08-07 02:26:07 +0000 |
| commit | 7be8f0af0393dcdb077c2f6b1653836fd3fba235 (patch) | |
| tree | 7e256e2ccf9815a98746d80f61d34b63782887d2 /src/libsyntax/parse | |
| parent | 8fe73f1166c0d3765cabb26680b82175ec4429cd (diff) | |
| parent | d3202354f5fe3860c429adc4bab6e6dc88ee83bc (diff) | |
| download | rust-7be8f0af0393dcdb077c2f6b1653836fd3fba235.tar.gz rust-7be8f0af0393dcdb077c2f6b1653836fd3fba235.zip | |
auto merge of #16306 : pnkfelix/rust/fsk-ast-refactor-PatWild, r=alexcrichton
AST refactoring: merge PatWild and PatWildMulti into one variant with a flag
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 18b1d60d4e9..c9fba355c4d 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -39,7 +39,7 @@ 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}; use ast::{PatIdent, PatLit, PatRange, PatRegion, PatStruct}; -use ast::{PatTup, PatBox, PatWild, PatWildMulti}; +use ast::{PatTup, PatBox, PatWild, PatWildMulti, PatWildSingle}; use ast::{BiRem, Required}; use ast::{RetStyle, Return, BiShl, BiShr, Stmt, StmtDecl}; use ast::{StmtExpr, StmtSemi, StmtMac, StructDef, StructField}; @@ -2822,7 +2822,7 @@ impl<'a> Parser<'a> { if self.token == token::COMMA || self.token == token::RBRACKET { slice = Some(box(GC) ast::Pat { id: ast::DUMMY_NODE_ID, - node: PatWildMulti, + node: PatWild(PatWildMulti), span: self.span, }) } else { @@ -2920,7 +2920,7 @@ impl<'a> Parser<'a> { // parse _ token::UNDERSCORE => { self.bump(); - pat = PatWild; + pat = PatWild(PatWildSingle); hi = self.last_span.hi; return box(GC) ast::Pat { id: ast::DUMMY_NODE_ID, |
