Skip to content

Commit 5cee3e4

Browse files
committed
---
yaml --- r: 5105 b: refs/heads/master c: 3fe743b h: refs/heads/master i: 5103: d88b71b v: v3
1 parent eaac6bc commit 5cee3e4

File tree

11 files changed

+35
-35
lines changed

11 files changed

+35
-35
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 5ebe61cdda1349ed1a79d39bb41f8d812d38a216
2+
refs/heads/master: 3fe743bc9c269b5ed4c9b74bf8ed8c5868c12918

trunk/src/comp/middle/freevars.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ fn annotate_freevars(def_map: &resolve::def_map,
120120
fn get_freevars(tcx: &ty::ctxt, fid: ast::node_id) -> freevar_info {
121121
alt tcx.freevars.find(fid) {
122122
none. {
123-
fail "get_freevars: " + istr::to_estr(int::str(fid))
124-
+ " has no freevars";
123+
fail ~"get_freevars: " + int::str(fid)
124+
+ ~" has no freevars";
125125
}
126126
some(d) { ret d; }
127127
}

trunk/src/comp/middle/tstate/annotate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn node_ids_in_fn(f: &_fn, tps: &[ty_param], sp: &span, i: &fn_ident,
6262
6363
fn init_vecs(ccx: &crate_ctxt, node_ids: &[node_id], len: uint) {
6464
for i: node_id in node_ids {
65-
log istr::to_estr(int::str(i) + ~" |-> " + uint::str(len));
65+
log int::str(i) + ~" |-> " + uint::str(len);
6666
add_node(ccx, i, empty_ann(len));
6767
}
6868
}

trunk/src/comp/middle/tstate/auxiliary.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,8 @@ fn get_ts_ann(ccx: &crate_ctxt, i: node_id) -> option::t<ts_ann> {
331331
fn node_id_to_ts_ann(ccx: &crate_ctxt, id: node_id) -> ts_ann {
332332
alt get_ts_ann(ccx, id) {
333333
none. {
334-
log_err "node_id_to_ts_ann: no ts_ann for node_id "
335-
+ istr::to_estr(int::str(id));
334+
log_err ~"node_id_to_ts_ann: no ts_ann for node_id "
335+
+ int::str(id);
336336
fail;
337337
}
338338
some(t) { ret t; }
@@ -534,8 +534,8 @@ fn constraints_expr(cx: &ty::ctxt, e: @expr) -> [@ty::constr] {
534534
fn node_id_to_def_strict(cx: &ty::ctxt, id: node_id) -> def {
535535
alt cx.def_map.find(id) {
536536
none. {
537-
log_err "node_id_to_def: node_id "
538-
+ istr::to_estr(int::str(id)) + " has no def";
537+
log_err ~"node_id_to_def: node_id "
538+
+ int::str(id) + ~" has no def";
539539
fail;
540540
}
541541
some(d) { ret d; }

trunk/src/comp/middle/tstate/collect_locals.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ fn mk_fn_info(ccx: &crate_ctxt, f: &_fn, tp: &[ty_param], f_sp: &span,
147147
i_diverge: ninit(diverges_id, diverges_name),
148148
used_vars: v};
149149
ccx.fm.insert(id, rslt);
150-
log istr::to_estr(name + ~" has "
150+
log name + ~" has "
151151
+ std::uint::str(num_constraints(rslt))
152-
+ ~" constraints");
152+
+ ~" constraints";
153153
}
154154

155155

trunk/src/comp/syntax/ext/ifmt.rs

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,7 @@ fn pieces_to_expr(cx: &ext_ctxt, sp: span, pieces: &[piece],
263263
fn log_conv(c: conv) {
264264
alt c.param {
265265
some(p) {
266-
log "param: "
267-
+ istr::to_estr(std::int::to_str(p, 10u));
266+
log ~"param: " + std::int::to_str(p, 10u);
268267
}
269268
_ { log "param: none"; }
270269
}
@@ -278,21 +277,21 @@ fn pieces_to_expr(cx: &ext_ctxt, sp: span, pieces: &[piece],
278277
}
279278
}
280279
alt c.width {
281-
count_is(i) { log "width: count is "
282-
+ istr::to_estr(std::int::to_str(i, 10u)); }
280+
count_is(i) { log ~"width: count is "
281+
+ std::int::to_str(i, 10u); }
283282
count_is_param(i) {
284-
log "width: count is param "
285-
+ istr::to_estr(std::int::to_str(i, 10u));
283+
log ~"width: count is param "
284+
+ std::int::to_str(i, 10u);
286285
}
287286
count_is_next_param. { log "width: count is next param"; }
288287
count_implied. { log "width: count is implied"; }
289288
}
290289
alt c.precision {
291-
count_is(i) { log "prec: count is "
292-
+ istr::to_estr(std::int::to_str(i, 10u)); }
290+
count_is(i) { log ~"prec: count is "
291+
+ std::int::to_str(i, 10u); }
293292
count_is_param(i) {
294-
log "prec: count is param "
295-
+ istr::to_estr(std::int::to_str(i, 10u));
293+
log ~"prec: count is param "
294+
+ std::int::to_str(i, 10u);
296295
}
297296
count_is_next_param. { log "prec: count is next param"; }
298297
count_implied. { log "prec: count is implied"; }

trunk/src/comp/util/ppaux.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ fn get_id_ident(cx: &ctxt, id: ast::def_id) -> istr {
4646
if id.crate != ast::local_crate {
4747
alt cx.ext_map.find(id) {
4848
some(j) { istr::connect(j, ~"::") }
49-
_ { fail ("get_id_ident: can't find item in ext_map, id.crate = "
50-
+ istr::to_estr(int::str(id.crate))) }
49+
_ { fail (~"get_id_ident: can't find item in ext_map, id.crate = "
50+
+ int::str(id.crate)) }
5151
}
5252
} else {
5353
alt cx.items.find(id.node) {

trunk/src/lib/ebml.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ fn get_doc(d: doc, tg: uint) -> doc {
6767
alt maybe_get_doc(d, tg) {
6868
some(d) { ret d; }
6969
none. {
70-
log_err "failed to find block with tag "
71-
+ istr::to_estr(uint::to_str(tg, 10u));
70+
log_err ~"failed to find block with tag " + uint::to_str(tg, 10u);
7271
fail;
7372
}
7473
}

trunk/src/test/bench/99bob-pattern.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ fn show(b: bottle) {
3030
"1 bottle of beer on the wall.";
3131
}
3232
multiple(n) {
33-
let nb: str = istr::to_estr(int::to_str(n, 10u));
34-
let mb: str = istr::to_estr(int::to_str(n - 1, 10u));
35-
log nb + " bottles of beer on the wall, " + nb + " bottles of beer,";
36-
log "Take one down and pass it around, " + mb +
37-
" bottles of beer on the wall.";
33+
let nb: istr = int::to_str(n, 10u);
34+
let mb: istr = int::to_str(n - 1, 10u);
35+
log nb + ~" bottles of beer on the wall, " + nb +
36+
~" bottles of beer,";
37+
log ~"Take one down and pass it around, " + mb +
38+
~" bottles of beer on the wall.";
3839
}
3940
}
4041
}

trunk/src/test/bench/99bob-tail.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ import std::istr;
99

1010
fn main() {
1111
fn multiple(n: int) {
12-
let nb: str = istr::to_estr(int::to_str(n, 10u));
13-
let mb: str = istr::to_estr(int::to_str(n - 1, 10u));
14-
log nb + " bottles of beer on the wall, " + nb + " bottles of beer,";
15-
log "Take one down and pass it around, " + mb +
16-
" bottles of beer on the wall.";
12+
let nb: istr = int::to_str(n, 10u);
13+
let mb: istr = int::to_str(n - 1, 10u);
14+
log nb + ~" bottles of beer on the wall, " + nb +
15+
~" bottles of beer,";
16+
log ~"Take one down and pass it around, " + mb +
17+
~" bottles of beer on the wall.";
1718
log "";
1819
if n > 3 { be multiple(n - 1); } else { be dual(); }
1920
}

trunk/src/test/compiletest/compiletest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ fn parse_config(args: &[istr]) -> config {
4949
alt getopts::getopts(args_, opts) {
5050
getopts::success(m) { m }
5151
getopts::failure(f) {
52-
fail istr::to_estr(getopts::fail_str(f))
52+
fail getopts::fail_str(f)
5353
}
5454
};
5555

0 commit comments

Comments
 (0)