librustc: Remove fail_unless!
This commit is contained in:
parent
a17a9d41f6
commit
1e91595520
862 changed files with 5898 additions and 5911 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);
|
||||
fail_unless!(next_state.tys.len() ==
|
||||
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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue