Skip to content

Commit fb21fb4

Browse files
committed
---
yaml --- r: 28663 b: refs/heads/try c: d48396c h: refs/heads/master i: 28661: f1374a5 28659: 0ed1cf0 28655: 37ad9f4 v: v3
1 parent b90874f commit fb21fb4

File tree

20 files changed

+183
-160
lines changed

20 files changed

+183
-160
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
5-
refs/heads/try: 49af969e2cd4cfb36cdfb55b70bea01592b404eb
5+
refs/heads/try: d48396c986ec1f9b72de9de7879e7f438d83377c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df

branches/try/src/compiletest/procsrv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fn readclose(fd: c_int) -> ~str {
104104
let mut buf = ~"";
105105
while !reader.eof() {
106106
let bytes = reader.read_bytes(4096u);
107-
str::push_str(buf, str::from_bytes(bytes));
107+
str::push_str(&mut buf, str::from_bytes(bytes));
108108
}
109109
os::fclose(file);
110110
return buf;

branches/try/src/libcore/char.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ fn escape_unicode(c: char) -> ~str {
141141
else { ('U', 8u) });
142142
assert str::len(s) <= pad;
143143
let mut out = ~"\\";
144-
str::push_str(out, str::from_char(c));
145-
for uint::range(str::len(s), pad) |_i| { str::push_str(out, ~"0"); }
146-
str::push_str(out, s);
144+
str::push_str(&mut out, str::from_char(c));
145+
for uint::range(str::len(s), pad) |_i| { str::push_str(&mut out, ~"0"); }
146+
str::push_str(&mut out, s);
147147
move out
148148
}
149149

branches/try/src/libcore/extfmt.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,9 @@ mod rt {
293293
let mut s : ~str = int_to_str_prec(i, radix, prec);
294294
if 0 <= i {
295295
if have_flag(cv.flags, flag_sign_always) {
296-
unsafe { str::unshift_char(s, '+') };
296+
unsafe { str::unshift_char(&mut s, '+') };
297297
} else if have_flag(cv.flags, flag_space_for_sign) {
298-
unsafe { str::unshift_char(s, ' ') };
298+
unsafe { str::unshift_char(&mut s, ' ') };
299299
}
300300
}
301301
return unsafe { pad(cv, s, PadSigned) };
@@ -463,13 +463,13 @@ mod rt {
463463
// instead.
464464

465465
if signed && zero_padding && str::len(s) > 0u {
466-
let head = str::shift_char(s);
466+
let head = str::shift_char(&mut s);
467467
if head == '+' || head == '-' || head == ' ' {
468468
let headstr = str::from_chars(vec::from_elem(1u, head));
469469
return headstr + padstr + s;
470470
}
471471
else {
472-
str::unshift_char(s, head);
472+
str::unshift_char(&mut s, head);
473473
}
474474
}
475475
return padstr + s;
@@ -500,9 +500,9 @@ mod rt2 {
500500
let mut s : ~str = int_to_str_prec(i, radix, prec);
501501
if 0 <= i {
502502
if have_flag(cv.flags, flag_sign_always) {
503-
unsafe { str::unshift_char(s, '+') };
503+
unsafe { str::unshift_char(&mut s, '+') };
504504
} else if have_flag(cv.flags, flag_space_for_sign) {
505-
unsafe { str::unshift_char(s, ' ') };
505+
unsafe { str::unshift_char(&mut s, ' ') };
506506
}
507507
}
508508
return unsafe { pad(cv, s, PadSigned) };
@@ -670,13 +670,13 @@ mod rt2 {
670670
// instead.
671671

672672
if signed && zero_padding && str::len(s) > 0u {
673-
let head = str::shift_char(s);
673+
let head = str::shift_char(&mut s);
674674
if head == '+' || head == '-' || head == ' ' {
675675
let headstr = str::from_chars(vec::from_elem(1u, head));
676676
return headstr + padstr + s;
677677
}
678678
else {
679-
str::unshift_char(s, head);
679+
str::unshift_char(&mut s, head);
680680
}
681681
}
682682
return padstr + s;

0 commit comments

Comments
 (0)