diff options
| author | bors <bors@rust-lang.org> | 2014-01-21 04:26:15 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-01-21 04:26:15 -0800 |
| commit | 43cffe9d719170bd342b10d1bb81911f0e14a7c4 (patch) | |
| tree | 897cd7f2eb52770a2dd4d4c69efc47e1ecc7b4f7 /src/libsyntax/util/parser_testing.rs | |
| parent | 40df5a2e9ac81f445c7122a484618918b752a1e2 (diff) | |
| parent | 39713b829535b40aff2b7f368839d07ea7c2bf11 (diff) | |
| download | rust-43cffe9d719170bd342b10d1bb81911f0e14a7c4.tar.gz rust-43cffe9d719170bd342b10d1bb81911f0e14a7c4.zip | |
auto merge of #11663 : huonw/rust/paren-lint, r=cmr
The parens in `if (true) {}` are not necessary, so we'll warn about them.
cc #3070 and #11432
Diffstat (limited to 'src/libsyntax/util/parser_testing.rs')
| -rw-r--r-- | src/libsyntax/util/parser_testing.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/util/parser_testing.rs b/src/libsyntax/util/parser_testing.rs index 5153ddf1c7d..dd3ae168149 100644 --- a/src/libsyntax/util/parser_testing.rs +++ b/src/libsyntax/util/parser_testing.rs @@ -140,7 +140,7 @@ pub fn matches_codepattern(a : &str, b : &str) -> bool { fn scan_for_non_ws_or_end(a : &str, idx: uint) -> uint { let mut i = idx; let len = a.len(); - while ((i < len) && (is_whitespace(a.char_at(i)))) { + while (i < len) && (is_whitespace(a.char_at(i))) { i += 1; } i |
