rollup merge of #20554: huonw/mut-pattern
Conflicts: src/librustc_typeck/check/_match.rs
This commit is contained in:
commit
bb5e16b4b8
19 changed files with 92 additions and 26 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue