From: Jorge Aparicio Date: Fri, 2 Jan 2015 13:16:40 +0000 (-0500) Subject: regex_macros: fix fallout X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=ab6b6514038c4d280248e2371080d097dbe31be1;p=rust.git regex_macros: fix fallout --- diff --git a/src/libregex_macros/lib.rs b/src/libregex_macros/lib.rs index 0baa5e6c24f..ebd1cc7e166 100644 --- a/src/libregex_macros/lib.rs +++ b/src/libregex_macros/lib.rs @@ -603,7 +603,7 @@ fn wild_arm_expr(&self, body: P) -> ast::Arm { // Converts `xs` to a `[x1, x2, .., xN]` expression by calling `to_expr` // on each element in `xs`. fn vec_expr(&self, xs: It, mut to_expr: F) -> P where - It: Iterator, + It: Iterator, F: FnMut(&ExtCtxt, T) -> P, { let exprs = xs.map(|x| to_expr(self.cx, x)).collect();