librustc: Convert all uses of assert
over to fail_unless!
This commit is contained in:
parent
0ea031bcb8
commit
d7e74b5e91
817 changed files with 6378 additions and 6335 deletions
|
@ -54,7 +54,7 @@ impl gen_send for message {
|
|||
message(ref _id, span, ref tys, this, Some(ref next_state)) => {
|
||||
debug!("pipec: next state exists");
|
||||
let next = this.proto.get_state(next_state.state);
|
||||
assert next_state.tys.len() == next.generics.ty_params.len();
|
||||
fail_unless!(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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue