]> git.lizzy.rs Git - rust.git/blobdiff - src/libsyntax/parse/mod.rs
syntax: fix fallout
[rust.git] / src / libsyntax / parse / mod.rs
index 88c485a07acdf290a28ef5dd66c543b841c6ae76..8598571e5c37a7f41cebe2aeb1942da2a1968387 100644 (file)
@@ -598,7 +598,7 @@ pub fn binary_lit(lit: &str) -> Rc<Vec<u8>> {
     let error = |&: i| format!("lexer should have rejected {} at {}", lit, i);
 
     /// Eat everything up to a non-whitespace
-    fn eat<'a, I: Iterator<(uint, u8)>>(it: &mut iter::Peekable<(uint, u8), I>) {
+    fn eat<'a, I: Iterator<Item=(uint, u8)>>(it: &mut iter::Peekable<(uint, u8), I>) {
         loop {
             match it.peek().map(|x| x.1) {
                 Some(b' ') | Some(b'\n') | Some(b'\r') | Some(b'\t') => {