Skip to content

Commit 2aaa941

Browse files
committed
---
yaml --- r: 21367 b: refs/heads/snap-stage3 c: 0dad78e h: refs/heads/master i: 21365: eab1c94 21363: e1c1256 21359: 0e5f52c v: v3
1 parent 6f353b1 commit 2aaa941

File tree

16 files changed

+217
-133
lines changed

16 files changed

+217
-133
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: e430a699f2c60890d9b86069fd0c68a70ece7120
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 18180fd5dac16582474b5ec0fd49ebb03f7f939d
4+
refs/heads/snap-stage3: 0dad78e03d411a5bae4a7aa20eda93231634a095
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/llvm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit b55be285d18e9b3537fc9d29af44e83be2171326
1+
Subproject commit ab9efdacc290b24955561eda222363217578a908

branches/snap-stage3/src/rustc/driver/session.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ impl session {
189189
}
190190
// This exists to help with refactoring to eliminate impossible
191191
// cases later on
192-
fn impossible_case(sp: span, msg: ~str) -> ! {
192+
fn impossible_case(sp: span, msg: &str) -> ! {
193193
self.span_bug(sp, #fmt("Impossible case reached: %s", msg));
194194
}
195195
fn ppregions() -> bool { self.debugging_opt(ppregions) }

branches/snap-stage3/src/rustc/middle/trans/alt.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,10 @@ fn extract_variant_args(bcx: block, pat_id: ast::node_id,
305305
{vals: ~[ValueRef], bcx: block} {
306306
let _icx = bcx.insn_ctxt("alt::extract_variant_args");
307307
let ccx = bcx.fcx.ccx;
308-
let enum_ty_substs = match check ty::get(node_id_type(bcx, pat_id))
308+
let enum_ty_substs = match ty::get(node_id_type(bcx, pat_id))
309309
.struct {
310-
311310
ty::ty_enum(id, substs) => { assert id == vdefs.enm; substs.tps }
311+
_ => bcx.sess().bug(~"extract_variant_args: pattern has non-enum type")
312312
};
313313
let mut blobptr = val;
314314
let variants = ty::enum_variants(ccx.tcx, vdefs.enm);
@@ -667,11 +667,13 @@ fn compile_submatch(bcx: block, m: match_, vals: ~[ValueRef],
667667
match kind {
668668
single => Br(bcx, opt_cx.llbb),
669669
switch => {
670-
match check trans_opt(bcx, opt) {
670+
match trans_opt(bcx, opt) {
671671
single_result(r) => {
672672
llvm::LLVMAddCase(sw, r.val, opt_cx.llbb);
673673
bcx = r.bcx;
674674
}
675+
_ => bcx.sess().bug(~"in compile_submatch, expected \
676+
trans_opt to return a single_result")
675677
}
676678
}
677679
compare => {
@@ -892,7 +894,8 @@ fn trans_alt_inner(scope_cx: block, expr: @ast::expr, arms: ~[ast::arm],
892894
let arm_dest = dup_for_join(dest);
893895
vec::push(arm_dests, arm_dest);
894896
let mut arm_cx = trans_block(body_cx, a.body, arm_dest);
895-
arm_cx = trans_block_cleanups(arm_cx, body_cx);
897+
arm_cx = trans_block_cleanups(arm_cx,
898+
block_cleanups(body_cx));
896899
vec::push(arm_cxs, arm_cx);
897900
}
898901
}

0 commit comments

Comments
 (0)