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
commit bb5e16b4b8
19 changed files with 92 additions and 26 deletions

View file

@ -937,7 +937,7 @@ impl<'a> MethodDef<'a> {
&**variant,
self_arg_name,
ast::MutImmutable);
(cx.pat(sp, ast::PatRegion(p)), idents)
(cx.pat(sp, ast::PatRegion(p, ast::MutImmutable)), idents)
};
// A single arm has form (&VariantK, &VariantK, ...) => BodyK