@@ -1222,7 +1222,7 @@ pub fn compile_guard(bcx: block,
1222
1222
1223
1223
let val = unpack_result!(bcx, {
1224
1224
do with_scope_result(bcx, guard_expr.info(),
1225
- ~ " guard") |bcx| {
1225
+ " guard") |bcx| {
1226
1226
expr::trans_to_datum(bcx, guard_expr).to_result()
1227
1227
}
1228
1228
});
@@ -1446,7 +1446,7 @@ pub fn compile_submatch(bcx: block,
1446
1446
}
1447
1447
let else_cx = match kind {
1448
1448
no_branch | single => bcx,
1449
- _ => sub_block(bcx, ~ " match_else")
1449
+ _ => sub_block(bcx, " match_else")
1450
1450
};
1451
1451
let sw = if kind == switch {
1452
1452
Switch(bcx, test_val, else_cx.llbb, opts.len())
@@ -1464,7 +1464,7 @@ pub fn compile_submatch(bcx: block,
1464
1464
i += 1u;
1465
1465
let mut opt_cx = else_cx;
1466
1466
if !exhaustive || i < len {
1467
- opt_cx = sub_block(bcx, ~ " match_case");
1467
+ opt_cx = sub_block(bcx, " match_case");
1468
1468
match kind {
1469
1469
single => Br(bcx, opt_cx.llbb),
1470
1470
switch => {
@@ -1486,7 +1486,7 @@ pub fn compile_submatch(bcx: block,
1486
1486
let t = node_id_type(bcx, pat_id);
1487
1487
let Result {bcx: after_cx, val: matches} = {
1488
1488
do with_scope_result(bcx, None,
1489
- ~ " compare_scope") |bcx| {
1489
+ " compare_scope") |bcx| {
1490
1490
match trans_opt(bcx, opt) {
1491
1491
single_result(
1492
1492
Result {bcx, val}) => {
@@ -1514,13 +1514,13 @@ pub fn compile_submatch(bcx: block,
1514
1514
}
1515
1515
}
1516
1516
};
1517
- bcx = sub_block(after_cx, ~ " compare_next");
1517
+ bcx = sub_block(after_cx, " compare_next");
1518
1518
CondBr(after_cx, matches, opt_cx.llbb, bcx.llbb);
1519
1519
}
1520
1520
compare_vec_len => {
1521
1521
let Result {bcx: after_cx, val: matches} = {
1522
1522
do with_scope_result(bcx, None,
1523
- ~ " compare_vec_len_scope") |bcx| {
1523
+ " compare_vec_len_scope") |bcx| {
1524
1524
match trans_opt(bcx, opt) {
1525
1525
single_result(
1526
1526
Result {bcx, val}) => {
@@ -1552,7 +1552,7 @@ pub fn compile_submatch(bcx: block,
1552
1552
}
1553
1553
}
1554
1554
};
1555
- bcx = sub_block(after_cx, ~ " compare_vec_len_next");
1555
+ bcx = sub_block(after_cx, " compare_vec_len_next");
1556
1556
CondBr(after_cx, matches, opt_cx.llbb, bcx.llbb);
1557
1557
}
1558
1558
_ => ()
@@ -1610,7 +1610,7 @@ pub fn trans_match(bcx: block,
1610
1610
arms: ~[ast::arm],
1611
1611
dest: Dest) -> block {
1612
1612
let _icx = bcx.insn_ctxt(" match :: trans_match");
1613
- do with_scope(bcx, match_expr.info(), ~ " match ") |bcx| {
1613
+ do with_scope(bcx, match_expr.info(), " match ") |bcx| {
1614
1614
trans_match_inner(bcx, discr_expr, arms, dest)
1615
1615
}
1616
1616
}
@@ -1632,7 +1632,7 @@ pub fn trans_match_inner(scope_cx: block,
1632
1632
1633
1633
let mut arm_datas = ~[], matches = ~[];
1634
1634
for arms.each |arm| {
1635
- let body = scope_block(bcx, arm.body.info(), ~ " case_body");
1635
+ let body = scope_block(bcx, arm.body.info(), " case_body");
1636
1636
1637
1637
// Create the bindings map, which is a mapping from each binding name
1638
1638
// to an alloca() that will be the value for that local variable.
@@ -1716,7 +1716,7 @@ pub fn trans_match_inner(scope_cx: block,
1716
1716
fn mk_fail(bcx: block, sp: span, msg: @~str,
1717
1717
finished: @mut Option<BasicBlockRef>) -> BasicBlockRef {
1718
1718
match *finished { Some(bb) => return bb, _ => () }
1719
- let fail_cx = sub_block(bcx, ~ " case_fallthrough");
1719
+ let fail_cx = sub_block(bcx, " case_fallthrough");
1720
1720
controlflow::trans_fail(fail_cx, Some(sp), msg);
1721
1721
*finished = Some(fail_cx.llbb);
1722
1722
return fail_cx.llbb;
0 commit comments