Skip to content

Commit 268eadc

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 163266 b: refs/heads/snap-stage3 c: fee500d h: refs/heads/master v: v3
1 parent c3adcda commit 268eadc

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

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