diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2013-06-14 09:36:03 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2013-06-14 09:36:03 +0200 |
| commit | 876f6deb4af73d3a6a9845c8ca0a9edff0e25989 (patch) | |
| tree | 7c412760a40e03c388d9f4a72d90a4b03a6ee566 | |
| parent | b03a0b27aa6fd0d2b8be4434c73ad45311e292fc (diff) | |
| download | rust-876f6deb4af73d3a6a9845c8ca0a9edff0e25989.tar.gz rust-876f6deb4af73d3a6a9845c8ca0a9edff0e25989.zip | |
fixed code to placate new restrictions on form of function/method invocations.
| -rw-r--r-- | src/libsyntax/parse/comments.rs | 2 | ||||
| -rw-r--r-- | src/test/pretty/block-comment-wchar.pp | 4 | ||||
| -rw-r--r-- | src/test/pretty/block-comment-wchar.rs | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/libsyntax/parse/comments.rs b/src/libsyntax/parse/comments.rs index 29fac8f951d..572b657d6a1 100644 --- a/src/libsyntax/parse/comments.rs +++ b/src/libsyntax/parse/comments.rs @@ -206,7 +206,7 @@ fn all_whitespace(s: &str, col: CharPos) -> Option<uint> { let mut col = col.to_uint(); let mut cursor: uint = 0; while col > 0 && cursor < len { - let r: str::CharRange = str::char_range_at(s, cursor); + let r: str::CharRange = s.char_range_at(cursor); if !r.ch.is_whitespace() { return None; } diff --git a/src/test/pretty/block-comment-wchar.pp b/src/test/pretty/block-comment-wchar.pp index 9c80057ccef..911de166e8f 100644 --- a/src/test/pretty/block-comment-wchar.pp +++ b/src/test/pretty/block-comment-wchar.pp @@ -109,8 +109,8 @@ fn main() { '\u2004', '\u2005', '\u2006', '\u2007', '\u2008', '\u2009', '\u200A', '\u2028', '\u2029', '\u202F', '\u205F', '\u3000']; // <= bugs in pretty-printer? - for vec::each(chars) |c| { + for chars.each |c| { let ws = c.is_whitespace(); - io::println(fmt!("%? %?" , c , ws)); + println(fmt!("%? %?" , c , ws)); } } diff --git a/src/test/pretty/block-comment-wchar.rs b/src/test/pretty/block-comment-wchar.rs index a56fa91f39f..d8a820542a7 100644 --- a/src/test/pretty/block-comment-wchar.rs +++ b/src/test/pretty/block-comment-wchar.rs @@ -102,8 +102,8 @@ fn main() { '\xA0', '\u1680', '\u180E', '\u2000', '\u2001', '\u2002', '\u2003', '\u2004', '\u2005', '\u2006', '\u2007', '\u2008', '\u2009', '\u200A', '\u2028', '\u2029', '\u202F', '\u205F', '\u3000']; - for vec::each(chars) |c| { + for chars.each |c| { let ws = c.is_whitespace(); - io::println(fmt!("%? %?", c , ws)); // <= bugs in pretty-printer? + println(fmt!("%? %?", c , ws)); // <= bugs in pretty-printer? } } |
