diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-10 00:34:23 +1000 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-06-10 23:02:54 +1000 |
| commit | b29cd22bce6325a60788ab84f989bd2e82fcaaf4 (patch) | |
| tree | dfa42affe6369b9595b462b4ee15fdaf88ff8b3a /src/libsyntax | |
| parent | 1e8982bdb26208d9d9ed4cdcbcd21cc9ef35bd46 (diff) | |
| download | rust-b29cd22bce6325a60788ab84f989bd2e82fcaaf4.tar.gz rust-b29cd22bce6325a60788ab84f989bd2e82fcaaf4.zip | |
std: replace str::all/any fns and methods with iterators
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/parse/lexer.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/parse/lexer.rs b/src/libsyntax/parse/lexer.rs index 8ee0a976c8b..f615f1321df 100644 --- a/src/libsyntax/parse/lexer.rs +++ b/src/libsyntax/parse/lexer.rs @@ -19,6 +19,7 @@ use ext::tt::transcribe::{dup_tt_reader}; use parse::token; use parse::token::{str_to_ident}; +use core::iterator::IteratorUtil; use core::char; use core::either; use core::str; @@ -245,7 +246,7 @@ fn consume_whitespace_and_comments(rdr: @mut StringReader) pub fn is_line_non_doc_comment(s: &str) -> bool { let s = s.trim_right(); - s.len() > 3 && s.all(|ch| ch == '/') + s.len() > 3 && s.iter().all(|ch| ch == '/') } // PRECONDITION: rdr.curr is not whitespace |
