Skip to content

Commit b339a91

Browse files
committed
---
yaml --- r: 14610 b: refs/heads/try c: f630ebd h: refs/heads/master v: v3
1 parent 97b4c9e commit b339a91

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 1404a864a4f70a5865f2daac7e285c5dbc448e89
5+
refs/heads/try: f630ebdb6aac2ceee23765452a2774e83ee3b13e
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/fuzzer/fuzzer.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ fn check_variants_T<T: copy>(
268268
diagnostic::mk_span_handler(handler, codemap),
269269
crate2,
270270
filename,
271-
io::string_reader(""), _,
271+
io::str_reader(""), _,
272272
pprust::no_ann()));
273273
alt cx.mode {
274274
tm_converge {
@@ -416,7 +416,7 @@ fn parse_and_print(code: @str) -> str {
416416
sess.span_diagnostic,
417417
crate,
418418
filename,
419-
io::string_reader(*code), _,
419+
io::str_reader(*code), _,
420420
pprust::no_ann()));
421421
}
422422

@@ -562,7 +562,7 @@ fn check_variants(files: [str], cx: context) {
562562
sess.span_diagnostic,
563563
crate,
564564
file,
565-
io::string_reader(*s), _,
565+
io::str_reader(*s), _,
566566
pprust::no_ann())));
567567
check_variants_of_ast(*crate, sess.cm, file, cx);
568568
}

branches/try/src/libstd/io.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ fn with_bytes_reader_between<t>(bytes: [u8], start: uint, end: uint,
270270
f(bytes_reader_between(bytes, start, end))
271271
}
272272

273-
fn string_reader(s: str) -> reader {
273+
fn str_reader(s: str) -> reader {
274274
bytes_reader(str::bytes(s))
275275
}
276276

@@ -662,7 +662,7 @@ mod tests {
662662

663663
#[test]
664664
fn test_readchars_empty() {
665-
let inp : io::reader = io::string_reader("");
665+
let inp : io::reader = io::str_reader("");
666666
let res : [char] = inp.read_chars(128u);
667667
assert(vec::len(res) == 0u);
668668
}
@@ -677,7 +677,7 @@ mod tests {
677677
29983, 38152, 30340, 27748,
678678
21273, 20999, 32905, 27748];
679679
fn check_read_ln(len : uint, s: str, ivals: [int]) {
680-
let inp : io::reader = io::string_reader(s);
680+
let inp : io::reader = io::str_reader(s);
681681
let res : [char] = inp.read_chars(len);
682682
if (len <= vec::len(ivals)) {
683683
assert(vec::len(res) == len);
@@ -696,14 +696,14 @@ mod tests {
696696

697697
#[test]
698698
fn test_readchar() {
699-
let inp : io::reader = io::string_reader("生");
699+
let inp : io::reader = io::str_reader("生");
700700
let res : char = inp.read_char();
701701
assert(res as int == 29983);
702702
}
703703

704704
#[test]
705705
fn test_readchar_empty() {
706-
let inp : io::reader = io::string_reader("");
706+
let inp : io::reader = io::str_reader("");
707707
let res : char = inp.read_char();
708708
assert(res as int == -1);
709709
}

branches/try/src/rustc/driver/driver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ fn pretty_print_input(sess: session, cfg: ast::crate_cfg, input: str,
273273
}
274274
let src = codemap::get_filemap(sess.codemap, input).src;
275275
pprust::print_crate(sess.codemap, sess.span_diagnostic, crate, input,
276-
io::string_reader(*src), io::stdout(), ann);
276+
io::str_reader(*src), io::stdout(), ann);
277277
}
278278

279279
fn get_os(triple: str) -> option<session::os> {

branches/try/src/test/bench/task-perf-word-count.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import comm::recv;
2121
import comm::send;
2222

2323
fn map(input: str, emit: map_reduce::putter) {
24-
let f = io::string_reader(input);
24+
let f = io::str_reader(input);
2525

2626

2727
while true {
@@ -451,4 +451,4 @@ convallis. Integer non tellus ante. Nulla hendrerit lobortis augue sit
451451
amet vulputate. Donec cursus hendrerit diam convallis
452452
luctus. Curabitur ipsum mauris, fermentum quis tincidunt ac, laoreet
453453
sollicitudin sapien. Fusce velit urna, gravida non pulvinar eu, tempor
454-
id nunc. " }
454+
id nunc. " }

0 commit comments

Comments
 (0)