Rename vec::mod2 to vec::mod_zip
This commit is contained in:
parent
1d53babd2f
commit
d53e686f4f
8 changed files with 19 additions and 16 deletions
|
@ -57,7 +57,7 @@ impl gen_send for message {
|
|||
assert!(next_state.tys.len() ==
|
||||
next.generics.ty_params.len());
|
||||
let arg_names = tys.mapi(|i, _ty| cx.ident_of(~"x_"+i.to_str()));
|
||||
let args_ast = vec::map2(arg_names, *tys, |n, t| cx.arg(*n, *t));
|
||||
let args_ast = vec::map_zip(arg_names, *tys, |n, t| cx.arg(*n, *t));
|
||||
|
||||
let pipe_ty = cx.ty_path_ast_builder(
|
||||
path(~[this.data_name()], span)
|
||||
|
@ -135,7 +135,7 @@ impl gen_send for message {
|
|||
debug!("pipec: no next state");
|
||||
let arg_names = tys.mapi(|i, _ty| (~"x_" + i.to_str()));
|
||||
|
||||
let args_ast = do vec::map2(arg_names, *tys) |n, t| {
|
||||
let args_ast = do vec::map_zip(arg_names, *tys) |n, t| {
|
||||
cx.arg(cx.ident_of(*n), *t)
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue