about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2013-06-10 16:17:10 +1000
committerHuon Wilson <dbau.pp+github@gmail.com>2013-06-10 23:02:54 +1000
commit7281fb948a48f56e06f9a324d52e70e056071005 (patch)
tree441b25cbd2245cba7a945f1a0094bc60814e955a /src/libsyntax/parse
parent0cfc08d81e7cc664330ce9d38a874c14a4ae51bf (diff)
downloadrust-7281fb948a48f56e06f9a324d52e70e056071005.tar.gz
rust-7281fb948a48f56e06f9a324d52e70e056071005.zip
std: replace str::{any,all}_between with the iterator equivalent.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/lexer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/lexer.rs b/src/libsyntax/parse/lexer.rs
index 04635fdf4e9..2dc8008f8ec 100644
--- a/src/libsyntax/parse/lexer.rs
+++ b/src/libsyntax/parse/lexer.rs
@@ -307,7 +307,7 @@ fn consume_any_line_comment(rdr: @mut StringReader)
 
 pub fn is_block_non_doc_comment(s: &str) -> bool {
     assert!(s.len() >= 1u);
-    str::all_between(s, 1u, s.len() - 1u, |ch| ch == '*')
+    s.slice(1u, s.len() - 1u).iter().all(|ch| ch == '*')
 }
 
 // might return a sugared-doc-attr