rollup merge of #20554: huonw/mut-pattern
Conflicts: src/librustc_typeck/check/_match.rs
This commit is contained in:
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user