rollup merge of #20554: huonw/mut-pattern

Conflicts:
	src/librustc_typeck/check/_match.rs
This commit is contained in:
Alex Crichton
2015-01-05 18:38:51 -08:00
19 changed files with 92 additions and 26 deletions

View File

@@ -2082,8 +2082,11 @@ impl<'a> State<'a> {
try!(word(&mut self.s, "box "));
try!(self.print_pat(&**inner));
}
ast::PatRegion(ref inner) => {
ast::PatRegion(ref inner, mutbl) => {
try!(word(&mut self.s, "&"));
if mutbl == ast::MutMutable {
try!(word(&mut self.s, "mut "));
}
try!(self.print_pat(&**inner));
}
ast::PatLit(ref e) => try!(self.print_expr(&**e)),