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/print | |
| 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/print')
| -rw-r--r-- | src/libsyntax/print/pprust.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs index 095dca66164..ab0269f807a 100644 --- a/src/libsyntax/print/pprust.rs +++ b/src/libsyntax/print/pprust.rs @@ -1732,8 +1732,8 @@ impl<'a> State<'a> { /* Pat isn't normalized, but the beauty of it is that it doesn't matter */ match pat.node { - ast::PatWild => try!(word(&mut self.s, "_")), - ast::PatWildMulti => try!(word(&mut self.s, "..")), + ast::PatWild(ast::PatWildSingle) => try!(word(&mut self.s, "_")), + ast::PatWild(ast::PatWildMulti) => try!(word(&mut self.s, "..")), ast::PatIdent(binding_mode, ref path1, sub) => { match binding_mode { ast::BindByRef(mutbl) => { @@ -1822,7 +1822,7 @@ impl<'a> State<'a> { for p in slice.iter() { if !before.is_empty() { try!(self.word_space(",")); } match **p { - ast::Pat { node: ast::PatWildMulti, .. } => { + ast::Pat { node: ast::PatWild(ast::PatWildMulti), .. } => { // this case is handled by print_pat } _ => try!(word(&mut self.s, "..")), |
