Skip to content

Commit f56a1e3

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 163796 b: refs/heads/master c: b44b5da h: refs/heads/master v: v3
1 parent b29d313 commit f56a1e3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 879ebce6a4023632cfd448749997ce3e4e24b05d
2+
refs/heads/master: b44b5da8c2ad8befb7deb88dc8df61508e1df22f
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 8443b09e361b96d1f9b7f45a65ed0d31c0e86e70
55
refs/heads/try: 20cbbffeefc1f35e2ea63afce7b42fbd79611d42

trunk/src/libregex_macros/lib.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
html_root_url = "http://doc.rust-lang.org/nightly/")]
2020

2121
#![feature(plugin_registrar, quote)]
22+
#![feature(unboxed_closures)]
2223

2324
extern crate regex;
2425
extern crate syntax;
@@ -601,9 +602,10 @@ fn exec<'t>(which: ::regex::native::MatchKind, input: &'t str,
601602

602603
// Converts `xs` to a `[x1, x2, .., xN]` expression by calling `to_expr`
603604
// on each element in `xs`.
604-
fn vec_expr<T, It: Iterator<T>>(&self, xs: It,
605-
to_expr: |&ExtCtxt, T| -> P<ast::Expr>)
606-
-> P<ast::Expr> {
605+
fn vec_expr<T, It, F>(&self, xs: It, mut to_expr: F) -> P<ast::Expr> where
606+
It: Iterator<T>,
607+
F: FnMut(&ExtCtxt, T) -> P<ast::Expr>,
608+
{
607609
let exprs = xs.map(|x| to_expr(self.cx, x)).collect();
608610
self.cx.expr_vec(self.sp, exprs)
609611
}

0 commit comments

Comments
 (0)