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