diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-04-30 11:52:07 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-04-30 11:52:07 -0700 |
| commit | 85fbfa25d799c98a0aadf2faef3fc17400764daf (patch) | |
| tree | 929d32253cfdbb303dadeecf7433466f6b27214c /src/fuzzer | |
| parent | 2bb3b63ec4379b812aeceb690d78763ec55d3cbb (diff) | |
Revert "Eliminate a copy in syntax::parse::new_parser_from_file"
This reverts commit 2bb3b63ec4379b812aeceb690d78763ec55d3cbb. (I was confused.)
Diffstat (limited to 'src/fuzzer')
| -rw-r--r-- | src/fuzzer/fuzzer.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/fuzzer/fuzzer.rs b/src/fuzzer/fuzzer.rs index 352038ef72b..47c6371ad16 100644 --- a/src/fuzzer/fuzzer.rs +++ b/src/fuzzer/fuzzer.rs @@ -271,7 +271,7 @@ fn check_variants_T<T: copy>( // testing the string for stability is easier and ok for now. let handler = diagnostic::mk_handler(none); let str3 = - ~as_str(bind pprust::print_crate( + @as_str(bind pprust::print_crate( codemap, diagnostic::mk_span_handler(handler, codemap), crate2, @@ -417,7 +417,7 @@ fn check_compiling(filename: str) -> happiness { } -fn parse_and_print(code: ~str) -> str { +fn parse_and_print(code: @str) -> str { let filename = "tmp.rs"; let cm = codemap::new_codemap(); let handler = diagnostic::mk_handler(none); @@ -507,7 +507,7 @@ fn file_might_not_converge(filename: str) -> bool { ret false; } -fn check_roundtrip_convergence(+code: ~str, maxIters: uint) { +fn check_roundtrip_convergence(code: @str, maxIters: uint) { let mut i = 0u; let mut newv = code; @@ -516,7 +516,7 @@ fn check_roundtrip_convergence(+code: ~str, maxIters: uint) { while i < maxIters { oldv = newv; if content_might_not_converge(*oldv) { ret; } - newv = ~parse_and_print(oldv); + newv = @parse_and_print(oldv); if oldv == newv { break; } i += 1u; } @@ -538,7 +538,7 @@ fn check_convergence(files: [str]) { #error("pp convergence tests: %u files", vec::len(files)); for files.each {|file| if !file_might_not_converge(file) { - let s = ~result::get(io::read_whole_file_str(file)); + let s = @result::get(io::read_whole_file_str(file)); if !content_might_not_converge(*s) { #error("pp converge: %s", file); // Change from 7u to 2u once @@ -557,7 +557,7 @@ fn check_variants(files: [str], cx: context) { cont; } - let s = ~result::get(io::read_whole_file_str(file)); + let s = @result::get(io::read_whole_file_str(file)); if contains(*s, "#") { cont; // Macros are confusing } |
