Fix fuzzer/cargo breakage

This commit is contained in:
Brian Anderson 2012-09-26 18:45:35 -07:00
parent 87a72567f0
commit 52c3cf296b
2 changed files with 3 additions and 3 deletions

View file

@ -896,7 +896,7 @@ fn install_uuid(c: &Cargo, wd: &Path, uuid: ~str) {
let mut ps = ~[];
for_each_package(c, |s, p| {
if p.uuid == uuid {
vec::push(ps, (s.name, copy *p));
vec::push(&mut ps, (s.name, copy *p));
}
});
if vec::len(ps) == 1u {
@ -920,7 +920,7 @@ fn install_named(c: &Cargo, wd: &Path, name: ~str) {
let mut ps = ~[];
for_each_package(c, |s, p| {
if p.name == name {
vec::push(ps, (s.name, copy *p));
vec::push(&mut ps, (s.name, copy *p));
}
});
if vec::len(ps) == 1u {

View file

@ -124,7 +124,7 @@ fn stash_ty_if(c: fn@(@ast::ty, test_mode)->bool,
e: @ast::ty,
tm: test_mode) {
if c(e, tm) {
es.push(e);
es.push(*e);
} else {/* now my indices are wrong :( */ }
}