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/ext | |
| 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/ext')
| -rw-r--r-- | src/libsyntax/ext/base.rs | 2 | ||||
| -rw-r--r-- | src/libsyntax/ext/build.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index d00406e07b7..01d3920a254 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.rs @@ -229,7 +229,7 @@ impl DummyResult { pub fn raw_pat(sp: Span) -> Gc<ast::Pat> { box(GC) ast::Pat { id: ast::DUMMY_NODE_ID, - node: ast::PatWild, + node: ast::PatWild(ast::PatWildSingle), span: sp, } } diff --git a/src/libsyntax/ext/build.rs b/src/libsyntax/ext/build.rs index 5acb84cf852..d500600e25d 100644 --- a/src/libsyntax/ext/build.rs +++ b/src/libsyntax/ext/build.rs @@ -763,7 +763,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> { box(GC) ast::Pat { id: ast::DUMMY_NODE_ID, node: pat, span: span } } fn pat_wild(&self, span: Span) -> Gc<ast::Pat> { - self.pat(span, ast::PatWild) + self.pat(span, ast::PatWild(ast::PatWildSingle)) } fn pat_lit(&self, span: Span, expr: Gc<ast::Expr>) -> Gc<ast::Pat> { self.pat(span, ast::PatLit(expr)) |
