Skip to content

Commit 91ec669

Browse files
committed
---
yaml --- r: 31615 b: refs/heads/dist-snap c: dfe1f62 h: refs/heads/master i: 31613: f3e4843 31611: bf0b875 31607: cc4033c 31599: 9abcf0b 31583: 264aa4d 31551: 13dd19c 31487: ef870a7 v: v3
1 parent 7c76d8e commit 91ec669

File tree

10 files changed

+23
-20
lines changed

10 files changed

+23
-20
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10-
refs/heads/dist-snap: b3933b88220b3a63f2a61b6769492898f718f1b4
10+
refs/heads/dist-snap: dfe1f6260e7e076114b95b42053cf6dc4cbaca68
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/dist-snap/src/libstd/bitv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ class bitv {
402402
*/
403403
fn to_str() -> ~str {
404404
let mut rs = ~"";
405-
for self.each() |i| { if i { rs += "1"; } else { rs += "0"; } };
405+
for self.each() |i| { if i { rs += ~"1"; } else { rs += ~"0"; } };
406406
rs
407407
}
408408

branches/dist-snap/src/libstd/map.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -331,22 +331,22 @@ mod chained {
331331
impl hashmap<K: copy to_str, V: to_str copy> of to_str for t<K, V> {
332332
fn to_writer(wr: io::writer) {
333333
if self.count == 0u {
334-
wr.write_str("{}");
334+
wr.write_str(~"{}");
335335
return;
336336
}
337337

338-
wr.write_str("{ ");
338+
wr.write_str(~"{ ");
339339
let mut first = true;
340340
for self.each_entry |entry| {
341341
if !first {
342-
wr.write_str(", ");
342+
wr.write_str(~", ");
343343
}
344344
first = false;
345345
wr.write_str(entry.key.to_str());
346-
wr.write_str(": ");
346+
wr.write_str(~": ");
347347
wr.write_str((copy entry.value).to_str());
348348
};
349-
wr.write_str(" }");
349+
wr.write_str(~" }");
350350
}
351351

352352
fn to_str() -> ~str {

branches/dist-snap/src/libsyntax/ext/pipes/pipec.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ impl compile of gen_send for message {
7171

7272
if this.proto.is_bounded() {
7373
let (sp, rp) = alt (this.dir, next.dir) {
74-
(send, send) { ("c", "s") }
75-
(send, recv) { ("s", "c") }
76-
(recv, send) { ("s", "c") }
77-
(recv, recv) { ("c", "s") }
74+
(send, send) { (~"c", ~"s") }
75+
(send, recv) { (~"s", ~"c") }
76+
(recv, send) { (~"s", ~"c") }
77+
(recv, recv) { (~"c", ~"s") }
7878
};
7979

80-
body += "let b = pipe.reuse_buffer();\n";
80+
body += ~"let b = pipe.reuse_buffer();\n";
8181
body += fmt!{"let %s = pipes::send_packet_buffered(\
8282
ptr::addr_of(b.buffer.data.%s));\n",
8383
sp, *next.name};

branches/dist-snap/src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2164,7 +2164,7 @@ class parser {
21642164
}
21652165
_ => {
21662166
self.fatal(~"expected `,` or `)`, found `" +
2167-
token_to_str(self.reader, self.token) + "`");
2167+
token_to_str(self.reader, self.token) + ~"`");
21682168
}
21692169
}
21702170
} else {

branches/dist-snap/src/libsyntax/parse/token.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ fn to_str(in: interner<@~str>, t: token) -> ~str {
167167
}
168168
LIT_FLOAT(s, t) {
169169
let mut body = *in.get(s);
170-
if body.ends_with(".") {
171-
body = body + "0"; // `10.f` is not a float literal
170+
if body.ends_with(~".") {
171+
body = body + ~"0"; // `10.f` is not a float literal
172172
}
173173
body + ast_util::float_ty_to_str(t)
174174
}

branches/dist-snap/src/libsyntax/print/pprust.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ fn print_item(s: ps, &&item: @ast::item) {
600600
bclose(s, item.span);
601601
}
602602
ast::item_mac({node: ast::mac_invoc_tt(pth, tts), _}) {
603-
head(s, path_to_str(pth) + "! " + *item.ident);
603+
head(s, path_to_str(pth) + ~"! " + *item.ident);
604604
bopen(s);
605605
for tts.each |tt| { print_tt(s, tt); }
606606
bclose(s, item.span);
@@ -873,7 +873,7 @@ fn print_mac(s: ps, m: ast::mac) {
873873
// FIXME: extension 'body' (#2339)
874874
}
875875
ast::mac_invoc_tt(pth, tts) {
876-
head(s, path_to_str(pth) + "!");
876+
head(s, path_to_str(pth) + ~"!");
877877
bopen(s);
878878
for tts.each() |tt| { print_tt(s, tt); }
879879
bclose(s, m.span);

branches/dist-snap/src/rustc/middle/trans/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5292,7 +5292,7 @@ fn gather_external_rtcalls(ccx: @crate_ctxt) {
52925292
// like gather_local_rtcalls, but we'll need to
52935293
// export attributes in metadata/encoder before we can do
52945294
// that.
5295-
let sentinel = "rt::rt_";
5295+
let sentinel = ~"rt::rt_";
52965296
let slen = str::len(sentinel);
52975297
if str::starts_with(pathname, sentinel) {
52985298
let name = str::substr(pathname,

branches/dist-snap/src/rustc/middle/typeck/check.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,10 @@ fn check_lit(fcx: @fn_ctxt, lit: @ast::lit) -> ty::t {
701701
let tcx = fcx.ccx.tcx;
702702

703703
alt lit.node {
704-
ast::lit_str(s) { ty::mk_estr(tcx, ty::vstore_fixed(s.len())) }
704+
ast::lit_str(s) {
705+
tcx.sess.span_warn(lit.span, ~"fixed length string");
706+
ty::mk_estr(tcx, ty::vstore_fixed(s.len()))
707+
}
705708
ast::lit_int(_, t) { ty::mk_mach_int(tcx, t) }
706709
ast::lit_uint(_, t) { ty::mk_mach_uint(tcx, t) }
707710
ast::lit_int_unsuffixed(_) {

branches/dist-snap/src/rustdoc/markdown_pass.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ fn header_name(doc: doc::itemtag) -> ~str {
229229
if i == 0 {
230230
trait_part += ~" of ";
231231
} else {
232-
trait_part += ", ";
232+
trait_part += ~", ";
233233
}
234234
trait_part += trait_type;
235235
}

0 commit comments

Comments
 (0)