Skip to content

Commit 4c57cbe

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 164738 b: refs/heads/try c: fee500d h: refs/heads/master v: v3
1 parent 78c691e commit 4c57cbe

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: f8f2c7a9537c7f333b242f616aefb75a83860927
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 8443b09e361b96d1f9b7f45a65ed0d31c0e86e70
5-
refs/heads/try: 5e9ca5b25530ab58f9d0b09662884928b054f271
5+
refs/heads/try: fee500d3124544ee6d9c59d9d9b15927172458d8
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/src/libregex/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@
370370

371371
#![allow(unknown_features)]
372372
#![feature(macro_rules, phase, slicing_syntax, globs)]
373+
#![feature(unboxed_closures)]
373374
#![deny(missing_docs)]
374375

375376
#[cfg(test)]

branches/try/src/libregex/parse.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -838,8 +838,9 @@ impl<'a> Parser<'a> {
838838
// Otherwise, an error will be returned.
839839
// Generally, `allow_start` is only true when you're *not* expecting an
840840
// opening parenthesis.
841-
fn pos_last(&self, allow_start: bool, pred: |&BuildAst| -> bool)
842-
-> Result<uint, Error> {
841+
fn pos_last<P>(&self, allow_start: bool, pred: P) -> Result<uint, Error> where
842+
P: FnMut(&BuildAst) -> bool,
843+
{
843844
let from = match self.stack.iter().rev().position(pred) {
844845
Some(i) => i,
845846
None => {

0 commit comments

Comments
 (0)