Skip to content

Commit 4c16ff5

Browse files
committed
Convert a couple hundred ~""s to ""s, in trans functions.
1 parent c1fad07 commit 4c16ff5

File tree

9 files changed

+280
-280
lines changed

9 files changed

+280
-280
lines changed

src/rustc/middle/trans/alt.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ enum opt_result {
4141
range_result(result, result),
4242
}
4343
fn trans_opt(bcx: block, o: opt) -> opt_result {
44-
let _icx = bcx.insn_ctxt(~"alt::trans_opt");
44+
let _icx = bcx.insn_ctxt("alt::trans_opt");
4545
let ccx = bcx.ccx();
4646
let mut bcx = bcx;
4747
match o {
@@ -303,7 +303,7 @@ fn get_options(ccx: @crate_ctxt, m: match_, col: uint) -> ~[opt] {
303303
fn extract_variant_args(bcx: block, pat_id: ast::node_id,
304304
vdefs: {enm: def_id, var: def_id}, val: ValueRef) ->
305305
{vals: ~[ValueRef], bcx: block} {
306-
let _icx = bcx.insn_ctxt(~"alt::extract_variant_args");
306+
let _icx = bcx.insn_ctxt("alt::extract_variant_args");
307307
let ccx = bcx.fcx.ccx;
308308
let enum_ty_substs = match check ty::get(node_id_type(bcx, pat_id))
309309
.struct {
@@ -449,7 +449,7 @@ fn compile_submatch(bcx: block, m: match_, vals: ~[ValueRef],
449449
For an empty match, a fall-through case must exist
450450
*/
451451
assert(m.len() > 0u || is_some(chk));
452-
let _icx = bcx.insn_ctxt(~"alt::compile_submatch");
452+
let _icx = bcx.insn_ctxt("alt::compile_submatch");
453453
let mut bcx = bcx;
454454
let tcx = bcx.tcx(), dm = tcx.def_map;
455455
if m.len() == 0u { Br(bcx, option::get(chk)()); return; }
@@ -735,7 +735,7 @@ fn make_phi_bindings(bcx: block,
735735
map: ~[exit_node],
736736
ids: pat_util::pat_id_map)
737737
-> option<phi_bindings_list> {
738-
let _icx = bcx.insn_ctxt(~"alt::make_phi_bindings");
738+
let _icx = bcx.insn_ctxt("alt::make_phi_bindings");
739739
let our_block = bcx.llbb as uint;
740740
let mut phi_bindings = ~[];
741741
for ids.each |name, node_id| {
@@ -815,15 +815,15 @@ fn trans_alt(bcx: block,
815815
arms: ~[ast::arm],
816816
mode: ast::alt_mode,
817817
dest: dest) -> block {
818-
let _icx = bcx.insn_ctxt(~"alt::trans_alt");
818+
let _icx = bcx.insn_ctxt("alt::trans_alt");
819819
do with_scope(bcx, alt_expr.info(), ~"alt") |bcx| {
820820
trans_alt_inner(bcx, expr, arms, mode, dest)
821821
}
822822
}
823823

824824
fn trans_alt_inner(scope_cx: block, expr: @ast::expr, arms: ~[ast::arm],
825825
mode: ast::alt_mode, dest: dest) -> block {
826-
let _icx = scope_cx.insn_ctxt(~"alt::trans_alt_inner");
826+
let _icx = scope_cx.insn_ctxt("alt::trans_alt_inner");
827827
let bcx = scope_cx, tcx = bcx.tcx();
828828
let mut bodies = ~[], matches = ~[];
829829

@@ -897,7 +897,7 @@ fn trans_alt_inner(scope_cx: block, expr: @ast::expr, arms: ~[ast::arm],
897897
// Not alt-related, but similar to the pattern-munging code above
898898
fn bind_irrefutable_pat(bcx: block, pat: @ast::pat, val: ValueRef,
899899
make_copy: bool) -> block {
900-
let _icx = bcx.insn_ctxt(~"alt::bind_irrefutable_pat");
900+
let _icx = bcx.insn_ctxt("alt::bind_irrefutable_pat");
901901
let ccx = bcx.fcx.ccx;
902902
let mut bcx = bcx;
903903

0 commit comments

Comments
 (0)