Skip to content

Commit 310a226

Browse files
committed
Fix pprust::State::print_pats
1 parent e85dd88 commit 310a226

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libsyntax/print/pprust.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2253,7 +2253,7 @@ impl<'a> State<'a> {
22532253
self.ann.post(self, NodePat(pat))
22542254
}
22552255

2256-
pub fn print_pats(&mut self, pats: &[ast::Pat]) -> IoResult<()> {
2256+
pub fn print_pats(&mut self, pats: &[P<ast::Pat>]) -> IoResult<()> {
22572257
let mut first = true;
22582258
for ref p in pats {
22592259
if first {
@@ -2264,6 +2264,7 @@ impl<'a> State<'a> {
22642264
}
22652265
try!(self.print_pat(&**p));
22662266
}
2267+
Ok(())
22672268
}
22682269

22692270
fn print_arm(&mut self, arm: &ast::Arm) -> IoResult<()> {

0 commit comments

Comments
 (0)