Skip to content

Commit 9f0fe55

Browse files
committed
---
yaml --- r: 83383 b: refs/heads/try c: 7535479 h: refs/heads/master i: 83381: 60896b2 83379: 707f186 83375: 0355c6b v: v3
1 parent 3edd0cf commit 9f0fe55

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 0e4d1fc8cae42e15e00f71d9f439b01bb25a86ae
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6c08cc2db4f98e9f07ae7d50338396c4123c2f0a
5-
refs/heads/try: b6fe27c9abc9f279e8b41b1760de694e9bdb9430
5+
refs/heads/try: 753547963340cb973210ad2df5590c29bf46ddf1
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/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)