Skip to content

Commit 98ca3ca

Browse files
committed
---
yaml --- r: 30075 b: refs/heads/incoming c: 0dad78e h: refs/heads/master i: 30073: 959776d 30071: ab03888 v: v3
1 parent 77cc40f commit 98ca3ca

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
@@ -6,7 +6,7 @@ refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9-
refs/heads/incoming: 18180fd5dac16582474b5ec0fd49ebb03f7f939d
9+
refs/heads/incoming: 0dad78e03d411a5bae4a7aa20eda93231634a095
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

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