Skip to content

Commit 1063445

Browse files
committed
Merge pull request #1565 from elly/cargo
[cargo] remove bogus function redefinition
2 parents 8ebe416 + eafc985 commit 1063445

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

Diff for: src/cargo/cargo.rs

-20
Original file line numberDiff line numberDiff line change
@@ -376,26 +376,6 @@ fn test_one_crate(c: cargo, _path: str, cf: str, _p: pkg) {
376376
}
377377
}
378378

379-
fn install_one_crate(c: cargo, _path: str, cf: str, _p: pkg) {
380-
let buildpath = fs::connect(_path, "/build");
381-
need_dir(buildpath);
382-
#debug("Installing: %s -> %s", cf, buildpath);
383-
let p = run::program_output("rustc", ["--out-dir", buildpath, cf]);
384-
if p.status != 0 {
385-
error(#fmt["rustc failed: %d\n%s\n%s", p.status, p.err, p.out]);
386-
ret;
387-
}
388-
let new = fs::list_dir(buildpath);
389-
let exec_suffix = os::exec_suffix();
390-
for ct: str in new {
391-
if (exec_suffix != "" && str::ends_with(ct, exec_suffix)) ||
392-
(exec_suffix == "" && !str::starts_with(ct, "./lib")) {
393-
// FIXME: need libstd fs::copy or something
394-
run::run_program(ct, []);
395-
}
396-
}
397-
}
398-
399379
fn install_one_crate(c: cargo, _path: str, cf: str, _p: pkg) {
400380
let buildpath = fs::connect(_path, "/build");
401381
need_dir(buildpath);

0 commit comments

Comments
 (0)