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

@@ -572,7 +572,7 @@ pub enum Pat_ {
PatStruct(Path, Vec<Spanned<FieldPat>>, bool),
PatTup(Vec<P<Pat>>),
PatBox(P<Pat>),
PatRegion(P<Pat>), // reference pattern
PatRegion(P<Pat>, Mutability), // reference pattern
PatLit(P<Expr>),
PatRange(P<Expr>, P<Expr>),
/// [a, b, ..i, y, z] is represented as: