Skip to content

Commit 7163d8c

Browse files
committed
---
yaml --- r: 81821 b: refs/heads/master c: 7535479 h: refs/heads/master i: 81819: 1c72b04 v: v3
1 parent 0d10ea7 commit 7163d8c

File tree

5 files changed

+102
-112
lines changed

5 files changed

+102
-112
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: b6fe27c9abc9f279e8b41b1760de694e9bdb9430
2+
refs/heads/master: 753547963340cb973210ad2df5590c29bf46ddf1
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6c08cc2db4f98e9f07ae7d50338396c4123c2f0a
55
refs/heads/try: 70152ff55722878cde684ee6462c14c65f2c4729

trunk/src/librustc/middle/typeck/check/_match.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ pub fn check_match(fcx: @mut FnCtxt,
3737
// Typecheck the patterns first, so that we get types for all the
3838
// bindings.
3939
for arm in arms.iter() {
40-
let pcx = pat_ctxt {
40+
let mut pcx = pat_ctxt {
4141
fcx: fcx,
4242
map: pat_id_map(tcx.def_map, arm.pats[0]),
4343
};
4444

45-
for p in arm.pats.iter() { check_pat(&pcx, *p, discrim_ty);}
45+
for p in arm.pats.iter() { check_pat(&mut pcx, *p, discrim_ty);}
4646
}
4747

4848
// The result of the match is the common supertype of all the

0 commit comments

Comments
 (0)