libstd: Change Path::new to Path::init.

This commit is contained in:
Patrick Walton 2013-11-22 15:45:12 -08:00
parent 6c672ee094
commit c54427ddfb
40 changed files with 546 additions and 541 deletions

View file

@ -72,7 +72,7 @@ fn shift_push() {
fn read_line() {
use std::io::buffered::BufferedReader;
let mut path = Path::new(env!("CFG_SRC_DIR"));
let mut path = Path::init(env!("CFG_SRC_DIR"));
path.push("src/test/bench/shootout-k-nucleotide.data");
for _ in range(0, 3) {

View file

@ -123,7 +123,7 @@ fn main() {
};
let writer = if os::getenv("RUST_BENCH").is_some() {
let file = File::create(&Path::new("./shootout-fasta.data"));
let file = File::create(&Path::init("./shootout-fasta.data"));
@mut file as @mut io::Writer
} else {
@mut io::stdout() as @mut io::Writer