Skip to content

Commit 52c3cf2

Browse files
committed
Fix fuzzer/cargo breakage
1 parent 87a7256 commit 52c3cf2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cargo/cargo.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ fn install_uuid(c: &Cargo, wd: &Path, uuid: ~str) {
896896
let mut ps = ~[];
897897
for_each_package(c, |s, p| {
898898
if p.uuid == uuid {
899-
vec::push(ps, (s.name, copy *p));
899+
vec::push(&mut ps, (s.name, copy *p));
900900
}
901901
});
902902
if vec::len(ps) == 1u {
@@ -920,7 +920,7 @@ fn install_named(c: &Cargo, wd: &Path, name: ~str) {
920920
let mut ps = ~[];
921921
for_each_package(c, |s, p| {
922922
if p.name == name {
923-
vec::push(ps, (s.name, copy *p));
923+
vec::push(&mut ps, (s.name, copy *p));
924924
}
925925
});
926926
if vec::len(ps) == 1u {

src/fuzzer/fuzzer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ fn stash_ty_if(c: fn@(@ast::ty, test_mode)->bool,
124124
e: @ast::ty,
125125
tm: test_mode) {
126126
if c(e, tm) {
127-
es.push(e);
127+
es.push(*e);
128128
} else {/* now my indices are wrong :( */ }
129129
}
130130

0 commit comments

Comments
 (0)