Skip to content

Commit 32d8285

Browse files
committed
---
yaml --- r: 15620 b: refs/heads/try c: 7d05bea h: refs/heads/master v: v3
1 parent 688f49b commit 32d8285

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 55e29ef4aa88d5d16b2ac6880cf1ab39ae11de90
5+
refs/heads/try: 7d05bea7b90a6963b48f761390fc6bc7ae2bb527
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/rustc/middle/trans/alt.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ fn enter_opt(tcx: ty::ctxt, m: match, opt: opt, col: uint,
164164
alt p.node {
165165
ast::pat_enum(_, subpats) {
166166
if opt_eq(tcx, variant_opt(tcx, p.id), opt) {
167-
some(option::get_or_default(subpats, [])) }
167+
some(option::get_or_default(subpats,
168+
vec::from_elem(variant_size, dummy))) }
168169
else { none }
169170
}
170171
ast::pat_ident(_, none) if pat_is_variant(tcx.def_map, p) {

0 commit comments

Comments
 (0)