Start using core::path2::Path in a lot of places.

This commit is contained in:
Graydon Hoare
2012-08-24 15:28:43 -07:00
parent a8f1bee457
commit c284b8b1dc
43 changed files with 1139 additions and 1115 deletions

View File

@@ -130,13 +130,13 @@ fn time<T>(what: ~str, f: fn() -> T) -> T {
fn run(config: config::config) {
let source_file = config.input_crate;
do astsrv::from_file(source_file) |srv| {
do astsrv::from_file(source_file.to_str()) |srv| {
do time(~"wait_ast") {
do astsrv::exec(srv) |_ctxt| { }
};
let doc = time(~"extract", || {
let default_name = source_file;
extract::from_srv(srv, default_name)
extract::from_srv(srv, default_name.to_str())
});
run_passes(srv, doc, ~[
tystr_pass::mk_pass(),