Skip to content

Commit 59c865d

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 163312 b: refs/heads/snap-stage3 c: b44b5da h: refs/heads/master v: v3
1 parent cf4cd22 commit 59c865d

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,7 +1,7 @@
11
---
22
refs/heads/master: 9146a919b616e39e528e4d7100d16eef52f1f852
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 879ebce6a4023632cfd448749997ce3e4e24b05d
4+
refs/heads/snap-stage3: b44b5da8c2ad8befb7deb88dc8df61508e1df22f
55
refs/heads/try: 20cbbffeefc1f35e2ea63afce7b42fbd79611d42
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/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)