Skip to content

Commit d83441b

Browse files
committed
---
yaml --- r: 81073 b: refs/heads/snap-stage3 c: 7535479 h: refs/heads/master i: 81071: 905e9c5 v: v3
1 parent 57d2326 commit d83441b

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,7 +1,7 @@
11
---
22
refs/heads/master: 4c6bf4872012c010f84dc7fa2cdfe87522533f89
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: b6fe27c9abc9f279e8b41b1760de694e9bdb9430
4+
refs/heads/snap-stage3: 753547963340cb973210ad2df5590c29bf46ddf1
55
refs/heads/try: 70152ff55722878cde684ee6462c14c65f2c4729
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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)