diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2014-08-06 17:04:44 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2014-08-06 17:04:44 +0200 |
| commit | d3202354f5fe3860c429adc4bab6e6dc88ee83bc (patch) | |
| tree | 04140f380a93c58864e9d84503f7aad3ea6a2985 /src/libsyntax/parse/parser.rs | |
| parent | b09a02b41588b2348fcce89c37c4a2cdc614d350 (diff) | |
| download | rust-d3202354f5fe3860c429adc4bab6e6dc88ee83bc.tar.gz rust-d3202354f5fe3860c429adc4bab6e6dc88ee83bc.zip | |
AST refactoring: merge PatWild and PatWildMulti into one variant with a flag.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -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, |
