Use slices rather than Vec borrows.

https://github.com/rust-lang-nursery/rust-clippy/wiki#ptr_arg
This commit is contained in:
Dan Gohman
2017-08-10 14:18:27 -07:00
parent 01744d6f65
commit 03698f6bc8
3 changed files with 13 additions and 13 deletions

View File

@@ -433,7 +433,7 @@ impl<Variable> SSABuilder<Variable>
temp_arg_val: Value,
temp_arg_var: Variable,
dest_ebb: Ebb,
preds: &Vec<(Block, Inst)>)
preds: &[(Block, Inst)])
-> (Value, SideEffects) {
let mut pred_values: ZeroOneOrMore<Value> = ZeroOneOrMore::Zero();
// TODO: find a way not not allocate a vector