]> git.lizzy.rs Git - rust.git/commitdiff
regex_macros: fix fallout
authorJorge Aparicio <japaricious@gmail.com>
Fri, 2 Jan 2015 13:16:40 +0000 (08:16 -0500)
committerJorge Aparicio <japaricious@gmail.com>
Sat, 3 Jan 2015 14:34:05 +0000 (09:34 -0500)
src/libregex_macros/lib.rs

index 0baa5e6c24f22ab1efdc6c3538c6f0f4a328d07c..ebd1cc7e166d71e17cb7e4335c693f8c18b0c0c1 100644 (file)
@@ -603,7 +603,7 @@ fn wild_arm_expr(&self, body: P<ast::Expr>) -> ast::Arm {
     // Converts `xs` to a `[x1, x2, .., xN]` expression by calling `to_expr`
     // on each element in `xs`.
     fn vec_expr<T, It, F>(&self, xs: It, mut to_expr: F) -> P<ast::Expr> where
-        It: Iterator<T>,
+        It: Iterator<Item=T>,
         F: FnMut(&ExtCtxt, T) -> P<ast::Expr>,
     {
         let exprs = xs.map(|x| to_expr(self.cx, x)).collect();