diff options
| author | Lindsey Kuper <lkuper@mozilla.com> | 2011-08-15 21:54:52 -0700 |
|---|---|---|
| committer | Lindsey Kuper <lkuper@mozilla.com> | 2011-08-15 22:19:50 -0700 |
| commit | f91351aaf69b0d4fefaff0df1c288466c0183de5 (patch) | |
| tree | ca66d19b0991260c5b0f386969bcfe091ca8ada3 /src/comp/syntax/parse | |
| parent | cb239cc028d388ce9784ffc023639924c5a2e59b (diff) | |
| download | rust-f91351aaf69b0d4fefaff0df1c288466c0183de5.tar.gz rust-f91351aaf69b0d4fefaff0df1c288466c0183de5.zip | |
The wonky for...in... whitespace was bothering me. Sorry!
Diffstat (limited to 'src/comp/syntax/parse')
| -rw-r--r-- | src/comp/syntax/parse/eval.rs | 2 | ||||
| -rw-r--r-- | src/comp/syntax/parse/lexer.rs | 2 | ||||
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/comp/syntax/parse/eval.rs b/src/comp/syntax/parse/eval.rs index 6dd06a97901..fb52960517d 100644 --- a/src/comp/syntax/parse/eval.rs +++ b/src/comp/syntax/parse/eval.rs @@ -29,7 +29,7 @@ fn eval_crate_directives(cx: ctx, cdirs: &[@ast::crate_directive], prefix: str, view_items: &mutable [@ast::view_item], items: &mutable [@ast::item]) { - for sub_cdir: @ast::crate_directive in cdirs { + for sub_cdir: @ast::crate_directive in cdirs { eval_crate_directive(cx, sub_cdir, prefix, view_items, items); } } diff --git a/src/comp/syntax/parse/lexer.rs b/src/comp/syntax/parse/lexer.rs index 4ceb5ba1df5..edeb6df407b 100644 --- a/src/comp/syntax/parse/lexer.rs +++ b/src/comp/syntax/parse/lexer.rs @@ -166,7 +166,7 @@ fn consume_block_comment(rdr: &reader) { fn digits_to_string(s: str) -> int { let accum_int: int = 0; - for c: u8 in s { + for c: u8 in s { accum_int *= 10; accum_int += dec_digit_val(c as char); } diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 8b7621b9018..93cdf617a63 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -355,7 +355,7 @@ fn parse_ty_field(p: &parser) -> ast::ty_field { // otherwise, fail fn ident_index(p: &parser, args: &[ast::arg], i: &ast::ident) -> uint { let j = 0u; - for a: ast::arg in args { if a.ident == i { ret j; } j += 1u; } + for a: ast::arg in args { if a.ident == i { ret j; } j += 1u; } p.fatal("Unbound variable " + i + " in constraint arg"); } @@ -1219,7 +1219,7 @@ const ternary_prec: int = 0; fn parse_more_binops(p: &parser, lhs: @ast::expr, min_prec: int) -> @ast::expr { let peeked = p.peek(); - for cur: op_spec in *p.get_prec_table() { + for cur: op_spec in *p.get_prec_table() { if cur.prec > min_prec && cur.tok == peeked { p.bump(); let rhs = parse_more_binops(p, parse_prefix_expr(p), cur.prec); @@ -2123,7 +2123,7 @@ fn parse_item_tag(p: &parser, attrs: &[ast::attribute]) -> @ast::item { let arg_tys = parse_seq(token::LPAREN, token::RPAREN, some(token::COMMA), bind parse_ty(_, false), p); - for ty: @ast::ty in arg_tys.node { + for ty: @ast::ty in arg_tys.node { args += ~[{ty: ty, id: p.get_id()}]; } vhi = arg_tys.span.hi; |
