diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-03-06 19:09:17 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-03-07 22:37:58 -0800 |
| commit | d661711cc2fb1365ad9f25cbabe3c34550eaafbe (patch) | |
| tree | 569597677a7b99ed9435df0c0253c7300ccf24d6 /src/libsyntax | |
| parent | 9a17ef9b5285bff753e4585f74beebd6fb3cf415 (diff) | |
| download | rust-d661711cc2fb1365ad9f25cbabe3c34550eaafbe.tar.gz rust-d661711cc2fb1365ad9f25cbabe3c34550eaafbe.zip | |
test: Fix tests.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ext/pipes/pipec.rs | 3 | ||||
| -rw-r--r-- | src/libsyntax/print/pp.rs | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/libsyntax/ext/pipes/pipec.rs b/src/libsyntax/ext/pipes/pipec.rs index eafe871a288..001e1b0daf6 100644 --- a/src/libsyntax/ext/pipes/pipec.rs +++ b/src/libsyntax/ext/pipes/pipec.rs @@ -54,7 +54,8 @@ 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() == 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)); diff --git a/src/libsyntax/print/pp.rs b/src/libsyntax/print/pp.rs index df658b96d7b..8557ef22fc6 100644 --- a/src/libsyntax/print/pp.rs +++ b/src/libsyntax/print/pp.rs @@ -405,7 +405,9 @@ pub impl Printer { self.print(x, L); match x { BREAK(b) => self.left_total += b.blank_space, - STRING(_, len) => { fail_unless!((len == L)); self.left_total += len; } + STRING(_, len) => { + fail_unless!((len == L)); self.left_total += len; + } _ => () } if self.left != self.right { |
